1 | import { _SPCollection, _SPInstance, ISPCollection, IDeleteable } from "../spqueryable.js";
|
2 | export declare class _ContentTypes extends _SPCollection<IContentTypeInfo[]> {
|
3 | |
4 |
|
5 |
|
6 |
|
7 |
|
8 | addAvailableContentType(contentTypeId: string): Promise<IContentTypeAddResult>;
|
9 | |
10 |
|
11 |
|
12 |
|
13 | getById(id: string): IContentType;
|
14 | |
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | add(id: string, name: string, description?: string, group?: string, additionalSettings?: Record<string, string | number | boolean>): Promise<IContentTypeAddResult>;
|
25 | }
|
26 | export interface IContentTypes extends _ContentTypes {
|
27 | }
|
28 | export declare const ContentTypes: import("../spqueryable.js").ISPInvokableFactory<IContentTypes>;
|
29 | export declare class _ContentType extends _SPInstance<IContentTypeInfo> {
|
30 | delete: (this: import("../spqueryable.js").ISPQueryable<any>) => Promise<void>;
|
31 | |
32 |
|
33 |
|
34 | get fieldLinks(): IFieldLinks;
|
35 | |
36 |
|
37 |
|
38 | get fields(): ISPCollection;
|
39 | |
40 |
|
41 |
|
42 | get parent(): IContentType;
|
43 | |
44 |
|
45 |
|
46 | get workflowAssociations(): ISPCollection;
|
47 | }
|
48 | export interface IContentType extends _ContentType, IDeleteable {
|
49 | }
|
50 | export declare const ContentType: import("../spqueryable.js").ISPInvokableFactory<IContentType>;
|
51 |
|
52 |
|
53 |
|
54 | export interface IContentTypeAddResult {
|
55 | contentType: IContentType;
|
56 | data: Partial<IContentTypeInfo>;
|
57 | }
|
58 | export declare class _FieldLinks extends _SPCollection<IFieldLinkInfo[]> {
|
59 | |
60 |
|
61 |
|
62 |
|
63 |
|
64 | getById(id: string): IFieldLink;
|
65 | }
|
66 | export interface IFieldLinks extends _FieldLinks {
|
67 | }
|
68 | export declare const FieldLinks: import("../spqueryable.js").ISPInvokableFactory<IFieldLinks>;
|
69 | export declare class _FieldLink extends _SPInstance<IFieldLinkInfo> {
|
70 | }
|
71 | export interface IFieldLink extends _FieldLink {
|
72 | }
|
73 | export declare const FieldLink: import("../spqueryable.js").ISPInvokableFactory<IFieldLink>;
|
74 | export interface IContentTypeInfo {
|
75 | Description: string;
|
76 | DisplayFormTemplateName: string;
|
77 | DisplayFormUrl: string;
|
78 | DocumentTemplate: string;
|
79 | DocumentTemplateUrl: string;
|
80 | EditFormTemplateName: string;
|
81 | EditFormUrl: string;
|
82 | Group: string;
|
83 | Hidden: boolean;
|
84 | Id: {
|
85 | StringValue: string;
|
86 | };
|
87 | JSLink: string;
|
88 | MobileDisplayFormUrl: string;
|
89 | MobileEditFormUrl: string;
|
90 | MobileNewFormUrl: string;
|
91 | Name: string;
|
92 | NewFormTemplateName: string;
|
93 | NewFormUrl: string;
|
94 | ReadOnly: boolean;
|
95 | SchemaXml: string;
|
96 | Scope: string;
|
97 | Sealed: boolean;
|
98 | StringId: string;
|
99 | }
|
100 | export interface IFieldLinkInfo {
|
101 | FieldInternalName: string | null;
|
102 | Hidden: boolean;
|
103 | Id: string;
|
104 | Name: string;
|
105 | Required: boolean;
|
106 | }
|
107 |
|
\ | No newline at end of file |