@pnp/sp 4.0.0-alpha0-v4nightly.20240111 → 4.0.0-alpha0-v4nightly.20240118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/commonjs/behaviors/request-digest.d.ts.map +1 -1
  2. package/commonjs/behaviors/request-digest.js +1 -0
  3. package/commonjs/behaviors/request-digest.js.map +1 -1
  4. package/commonjs/fields/types.js +1 -1
  5. package/commonjs/fields/types.js.map +1 -1
  6. package/commonjs/files/types.d.ts +5 -1
  7. package/commonjs/files/types.d.ts.map +1 -1
  8. package/commonjs/files/types.js +4 -1
  9. package/commonjs/files/types.js.map +1 -1
  10. package/commonjs/folders/types.js +1 -1
  11. package/commonjs/lists/types.d.ts +8 -0
  12. package/commonjs/lists/types.d.ts.map +1 -1
  13. package/commonjs/lists/types.js.map +1 -1
  14. package/commonjs/presets/all.d.ts +0 -2
  15. package/commonjs/presets/all.d.ts.map +1 -1
  16. package/commonjs/presets/all.js +0 -2
  17. package/commonjs/presets/all.js.map +1 -1
  18. package/commonjs/site-users/types.d.ts +1 -0
  19. package/commonjs/site-users/types.d.ts.map +1 -1
  20. package/commonjs/site-users/types.js +1 -0
  21. package/commonjs/site-users/types.js.map +1 -1
  22. package/commonjs/webs/types.js +1 -1
  23. package/commonjs/webs/types.js.map +1 -1
  24. package/esm/behaviors/request-digest.d.ts.map +1 -1
  25. package/esm/behaviors/request-digest.js +1 -0
  26. package/esm/behaviors/request-digest.js.map +1 -1
  27. package/esm/fields/types.js +1 -1
  28. package/esm/fields/types.js.map +1 -1
  29. package/esm/files/types.d.ts +5 -1
  30. package/esm/files/types.d.ts.map +1 -1
  31. package/esm/files/types.js +4 -1
  32. package/esm/files/types.js.map +1 -1
  33. package/esm/folders/types.js +1 -1
  34. package/esm/lists/types.d.ts +8 -0
  35. package/esm/lists/types.d.ts.map +1 -1
  36. package/esm/lists/types.js.map +1 -1
  37. package/esm/presets/all.d.ts +0 -2
  38. package/esm/presets/all.d.ts.map +1 -1
  39. package/esm/presets/all.js +0 -2
  40. package/esm/presets/all.js.map +1 -1
  41. package/esm/site-users/types.d.ts +1 -0
  42. package/esm/site-users/types.d.ts.map +1 -1
  43. package/esm/site-users/types.js +1 -0
  44. package/esm/site-users/types.js.map +1 -1
  45. package/esm/webs/types.js +1 -1
  46. package/esm/webs/types.js.map +1 -1
  47. package/package.json +3 -3
  48. package/commonjs/taxonomy/index.d.ts +0 -8
  49. package/commonjs/taxonomy/index.d.ts.map +0 -1
  50. package/commonjs/taxonomy/index.js +0 -24
  51. package/commonjs/taxonomy/index.js.map +0 -1
  52. package/commonjs/taxonomy/types.d.ts +0 -314
  53. package/commonjs/taxonomy/types.d.ts.map +0 -1
  54. package/commonjs/taxonomy/types.js +0 -305
  55. package/commonjs/taxonomy/types.js.map +0 -1
  56. package/esm/taxonomy/index.d.ts +0 -8
  57. package/esm/taxonomy/index.d.ts.map +0 -1
  58. package/esm/taxonomy/index.js +0 -13
  59. package/esm/taxonomy/index.js.map +0 -1
  60. package/esm/taxonomy/types.d.ts +0 -314
  61. package/esm/taxonomy/types.d.ts.map +0 -1
  62. package/esm/taxonomy/types.js +0 -299
  63. package/esm/taxonomy/types.js.map +0 -1
@@ -1,314 +0,0 @@
1
- import { _SPInstance, _SPCollection } from "../spqueryable.js";
2
- /**
3
- * Describes a collection of Form objects
4
- *
5
- */
6
- export declare class _TermStore extends _SPInstance<ITermStoreInfo> {
7
- /**
8
- * Gets the term groups associated with this tenant
9
- */
10
- get groups(): ITermGroups;
11
- /**
12
- * Gets the term sets associated with this tenant
13
- */
14
- get sets(): ITermSets;
15
- /**
16
- * Allows you to locate terms within the termStore
17
- *
18
- * @param params Search parameters used to locate the terms, label is required
19
- * @returns Array of terms including set information for each term
20
- */
21
- searchTerm(params: ISearchTermParams): Promise<Required<Pick<ITermInfo, SearchTermPickedProps>>[]>;
22
- /**
23
- * Update settings for TermStore
24
- *
25
- * @param props The set or properties to update
26
- * @returns The updated term store information
27
- */
28
- update(props: Partial<Pick<ITermStoreInfo, "defaultLanguageTag" | "languageTags">>): Promise<ITermStoreInfo>;
29
- }
30
- export interface ITermStore extends _TermStore {
31
- }
32
- export declare const TermStore: import("../spqueryable.js").ISPInvokableFactory<ITermStore>;
33
- export declare class _TermGroups extends _SPCollection<ITermGroupInfo[]> {
34
- /**
35
- * Gets a term group by id
36
- *
37
- * @param id Id of the term group to access
38
- */
39
- getById(id: string): ITermGroup;
40
- /**
41
- * Adds a new term group to this store
42
- * @param props The set of properties
43
- * @returns The information on the create group
44
- */
45
- add(props: Partial<Omit<ITermGroupInfo, "id" | "createdDateTime" | "lastModifiedDateTime" | "type">>): Promise<ITermGroupInfo>;
46
- }
47
- export interface ITermGroups extends _TermGroups {
48
- }
49
- export declare const TermGroups: import("../spqueryable.js").ISPInvokableFactory<ITermGroups>;
50
- export declare class _TermGroup extends _SPInstance<ITermGroupInfo> {
51
- /**
52
- * Gets the term sets associated with this tenant
53
- */
54
- get sets(): ITermSets;
55
- /**
56
- * Deletes this group
57
- *
58
- * @returns void
59
- */
60
- delete(): Promise<void>;
61
- }
62
- export interface ITermGroup extends _TermGroup {
63
- }
64
- export declare const TermGroup: import("../spqueryable.js").ISPInvokableFactory<ITermGroup>;
65
- export declare class _TermSets extends _SPCollection<ITermSetInfo[]> {
66
- /**
67
- * Gets a term group by id
68
- *
69
- * @param id Id of the term group to access
70
- */
71
- getById(id: string): ITermSet;
72
- /**
73
- * Adds a new term set to this collection
74
- * @param props The set of properties
75
- * @returns The information on the created set
76
- */
77
- add(props: Partial<ITermSetCreateParams>): Promise<ITermSetInfo>;
78
- }
79
- export interface ITermSets extends _TermSets {
80
- }
81
- export declare const TermSets: import("../spqueryable.js").ISPInvokableFactory<ITermSets>;
82
- export declare class _TermSet extends _SPInstance<ITermSetInfo> {
83
- /**
84
- * Gets all the terms in this set
85
- */
86
- get terms(): ITerms;
87
- get parentGroup(): ITermGroup;
88
- get children(): IChildren;
89
- get relations(): IRelations;
90
- getTermById(id: string): ITerm;
91
- /**
92
- * Update settings for TermSet
93
- *
94
- * @param props The set or properties to update
95
- * @returns The updated term set information
96
- */
97
- update(props: Partial<Pick<ITermSetInfo, "localizedNames" | "description" | "properties">>): Promise<ITermSetInfo>;
98
- /**
99
- * Deletes this group
100
- *
101
- * @returns void
102
- */
103
- delete(): Promise<void>;
104
- /**
105
- * Gets all the terms in this termset in an ordered tree using the appropriate sort ordering
106
- * ** This is an expensive operation and you should strongly consider caching the results **
107
- *
108
- * @param props Optional set of properties controlling how the tree is retrieved.
109
- */
110
- getAllChildrenAsOrderedTree(props?: Partial<IGetOrderedTreeProps>): Promise<IOrderedTermInfo[]>;
111
- }
112
- export interface ITermSet extends _TermSet {
113
- }
114
- export declare const TermSet: import("../spqueryable.js").ISPInvokableFactory<ITermSet>;
115
- export declare class _Children extends _SPCollection<ITermInfo[]> {
116
- /**
117
- * Adds a new term set to this collection
118
- * @param props The set of properties
119
- * @returns The information on the create group
120
- */
121
- add(props: Pick<ITermInfo, "labels">): Promise<ITermInfo>;
122
- }
123
- export interface IChildren extends _Children {
124
- }
125
- export declare const Children: import("../spqueryable.js").ISPInvokableFactory<IChildren>;
126
- export declare class _Terms extends _SPCollection<ITermInfo[]> {
127
- /**
128
- * Gets a term group by id
129
- *
130
- * @param id Id of the term group to access
131
- */
132
- getById(id: string): ITerm;
133
- }
134
- export interface ITerms extends _Terms {
135
- }
136
- export declare const Terms: import("../spqueryable.js").ISPInvokableFactory<ITerms>;
137
- export declare class _Term extends _SPInstance<ITermInfo> {
138
- get children(): IChildren;
139
- get relations(): IRelations;
140
- get set(): ITermSet;
141
- /**
142
- * Update settings for TermSet
143
- *
144
- * @param props The set or properties to update
145
- * @returns The updated term set information
146
- */
147
- update(props: Partial<Pick<ITermInfo, "labels" | "descriptions" | "properties">>): Promise<ITermSetInfo>;
148
- /**
149
- * Deletes this group
150
- *
151
- * @returns void
152
- */
153
- delete(): Promise<void>;
154
- }
155
- export interface ITerm extends _Term {
156
- }
157
- export declare const Term: import("../spqueryable.js").ISPInvokableFactory<ITerm>;
158
- export declare class _Relations extends _SPCollection<IRelationInfo[]> {
159
- /**
160
- * Adds a new relation to this term
161
- * @param props The set of properties
162
- * @returns The information on the created relation
163
- */
164
- add(props: Omit<IRelationCreateInfo, "id">): Promise<IRelationCreateInfo>;
165
- }
166
- export interface IRelations extends _Relations {
167
- }
168
- export declare const Relations: import("../spqueryable.js").ISPInvokableFactory<IRelations>;
169
- export interface ITermStoreInfo {
170
- id: string;
171
- name: string;
172
- defaultLanguageTag: string;
173
- languageTags: string[];
174
- administrators?: ITaxonomyUserInfo;
175
- }
176
- export interface ITermGroupInfo {
177
- id: string;
178
- description: string;
179
- name: string;
180
- displayName: string;
181
- createdDateTime: string;
182
- lastModifiedDateTime: string;
183
- type: string;
184
- scope: "global" | "system" | "siteCollection";
185
- }
186
- export interface ITermSetInfo {
187
- id: string;
188
- localizedNames: {
189
- name: string;
190
- languageTag: string;
191
- }[];
192
- description: string;
193
- createdDateTime: string;
194
- customSortOrder: string[];
195
- properties?: ITaxonomyProperty[];
196
- childrenCount: number;
197
- groupId: string;
198
- isOpen: boolean;
199
- isAvailableForTagging: boolean;
200
- contact: string;
201
- }
202
- export interface ITermSetCreateParams {
203
- localizedNames: {
204
- name: string;
205
- languageTag: string;
206
- }[];
207
- description?: string;
208
- properties?: ITaxonomyProperty[];
209
- /**
210
- * When adding a term set using ITermStore.sets parentGroup is required, when adding from ITermGroup.sets parentGroup is not needed
211
- */
212
- parentGroup?: {
213
- id: string;
214
- };
215
- isOpen?: boolean;
216
- isAvailableForTagging?: boolean;
217
- contact?: string;
218
- }
219
- export interface ITermInfo {
220
- childrenCount: number;
221
- id: string;
222
- labels: {
223
- name: string;
224
- isDefault: boolean;
225
- languageTag: string;
226
- }[];
227
- createdDateTime: string;
228
- customSortOrder?: ITermSortOrderInfo[];
229
- lastModifiedDateTime: string;
230
- descriptions: {
231
- description: string;
232
- languageTag: string;
233
- }[];
234
- properties?: ITaxonomyProperty[];
235
- localProperties?: ITaxonomyLocalProperty[];
236
- isDeprecated: boolean;
237
- isAvailableForTagging: {
238
- setId: string;
239
- isAvailable: boolean;
240
- }[];
241
- topicRequested?: boolean;
242
- parent?: ITermInfo;
243
- set?: ITermSetInfo;
244
- relations?: IRelationInfo[];
245
- children?: ITermInfo[];
246
- }
247
- export interface ISearchTermParams {
248
- /**
249
- * The term label to search for.
250
- */
251
- label: string;
252
- /**
253
- * The setId to scope down the search under a termSet.
254
- */
255
- setId?: string;
256
- /**
257
- * The parentTermId to scope down the search under a termSet, under a parent term.
258
- */
259
- parentTermId?: string;
260
- /**
261
- * The languageTag to scope down the search to a specific language.
262
- */
263
- languageTag?: string;
264
- /**
265
- * Indicates what type of string matching should be performed when searching.
266
- */
267
- stringMatchOption?: "ExactMatch" | "StartsWith";
268
- }
269
- declare type SearchTermPickedProps = "childrenCount" | "createdDateTime" | "descriptions" | "id" | "isAvailableForTagging" | "isDeprecated" | "labels" | "lastModifiedDateTime" | "set";
270
- export interface ITermSortOrderInfo {
271
- setId: string;
272
- order: string[];
273
- }
274
- export interface IOrderedTermInfo extends ITermInfo {
275
- children: ITermInfo[];
276
- defaultLabel: string;
277
- }
278
- export interface IRelationInfo {
279
- id: string;
280
- relationType: string;
281
- }
282
- export interface IRelationCreateInfo {
283
- id: string;
284
- relationship: "pin" | "reuse";
285
- fromTerm: {
286
- id: string;
287
- };
288
- toTerm: {
289
- id: string;
290
- };
291
- set: {
292
- id: string;
293
- };
294
- }
295
- export interface ITaxonomyUserInfo {
296
- user: {
297
- displayName: string;
298
- email: string;
299
- id: string;
300
- };
301
- }
302
- export interface ITaxonomyProperty {
303
- key: string;
304
- value: string;
305
- }
306
- export interface ITaxonomyLocalProperty {
307
- setId: string;
308
- properties: ITaxonomyProperty[];
309
- }
310
- export interface IGetOrderedTreeProps {
311
- retrieveProperties: boolean;
312
- }
313
- export {};
314
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 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E,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IAC/C,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,KAAK,GAAG,OAAO,CAAC;IAC9B,QAAQ,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;KACd,CAAC;IACF,GAAG,EAAE;QACD,EAAE,EAAE,MAAM,CAAC;KACd,CAAC;CACL;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE;QACF,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,EAAE,EAAE,MAAM,CAAC;KACd,CAAC;CACL;AAED,MAAM,WAAW,iBAAiB;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,iBAAiB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,oBAAoB;IACjC,kBAAkB,EAAE,OAAO,CAAC;CAC/B"}
@@ -1,299 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { isArray } from "@pnp/core";
3
- import { body } from "@pnp/queryable";
4
- import { defaultPath } from "../decorators.js";
5
- import { _SPInstance, spInvokableFactory, _SPCollection, spDelete, spPatch, spPost } from "../spqueryable.js";
6
- import { encodePath } from "../utils/encode-path-str.js";
7
- /**
8
- * Describes a collection of Form objects
9
- *
10
- */
11
- let _TermStore = class _TermStore extends _SPInstance {
12
- /**
13
- * Gets the term groups associated with this tenant
14
- */
15
- get groups() {
16
- return TermGroups(this);
17
- }
18
- /**
19
- * Gets the term sets associated with this tenant
20
- */
21
- get sets() {
22
- return TermSets(this);
23
- }
24
- /**
25
- * Allows you to locate terms within the termStore
26
- *
27
- * @param params Search parameters used to locate the terms, label is required
28
- * @returns Array of terms including set information for each term
29
- */
30
- async searchTerm(params) {
31
- const query = Reflect.ownKeys(params).reduce((c, prop) => {
32
- c.push(`${prop}='${encodePath(params[prop])}'`);
33
- return c;
34
- }, []).join(",");
35
- return TermStore(this, `searchTerm(${query})`).expand("set")();
36
- }
37
- /**
38
- * Update settings for TermStore
39
- *
40
- * @param props The set or properties to update
41
- * @returns The updated term store information
42
- */
43
- update(props) {
44
- return spPatch(this, body(props));
45
- }
46
- };
47
- _TermStore = __decorate([
48
- defaultPath("_api/v2.1/termstore")
49
- ], _TermStore);
50
- export { _TermStore };
51
- export const TermStore = spInvokableFactory(_TermStore);
52
- let _TermGroups = class _TermGroups extends _SPCollection {
53
- /**
54
- * Gets a term group by id
55
- *
56
- * @param id Id of the term group to access
57
- */
58
- getById(id) {
59
- return TermGroup(this, id);
60
- }
61
- /**
62
- * Adds a new term group to this store
63
- * @param props The set of properties
64
- * @returns The information on the create group
65
- */
66
- add(props) {
67
- return spPost(this, body(props));
68
- }
69
- };
70
- _TermGroups = __decorate([
71
- defaultPath("groups")
72
- ], _TermGroups);
73
- export { _TermGroups };
74
- export const TermGroups = spInvokableFactory(_TermGroups);
75
- export class _TermGroup extends _SPInstance {
76
- /**
77
- * Gets the term sets associated with this tenant
78
- */
79
- get sets() {
80
- return TermSets(this, "sets");
81
- }
82
- /**
83
- * Deletes this group
84
- *
85
- * @returns void
86
- */
87
- delete() {
88
- return spDelete(this);
89
- }
90
- }
91
- export const TermGroup = spInvokableFactory(_TermGroup);
92
- let _TermSets = class _TermSets extends _SPCollection {
93
- /**
94
- * Gets a term group by id
95
- *
96
- * @param id Id of the term group to access
97
- */
98
- getById(id) {
99
- return TermSet(this, id);
100
- }
101
- /**
102
- * Adds a new term set to this collection
103
- * @param props The set of properties
104
- * @returns The information on the created set
105
- */
106
- add(props) {
107
- return spPost(this, body(props));
108
- }
109
- };
110
- _TermSets = __decorate([
111
- defaultPath("sets")
112
- ], _TermSets);
113
- export { _TermSets };
114
- export const TermSets = spInvokableFactory(_TermSets);
115
- export class _TermSet extends _SPInstance {
116
- /**
117
- * Gets all the terms in this set
118
- */
119
- get terms() {
120
- return Terms(this);
121
- }
122
- get parentGroup() {
123
- return TermGroup(this, "parentGroup");
124
- }
125
- get children() {
126
- return Children(this);
127
- }
128
- get relations() {
129
- return Relations(this);
130
- }
131
- getTermById(id) {
132
- return Term(this, `terms/${id}`);
133
- }
134
- /**
135
- * Update settings for TermSet
136
- *
137
- * @param props The set or properties to update
138
- * @returns The updated term set information
139
- */
140
- update(props) {
141
- return spPatch(this, body(props));
142
- }
143
- /**
144
- * Deletes this group
145
- *
146
- * @returns void
147
- */
148
- delete() {
149
- return spDelete(this);
150
- }
151
- /**
152
- * Gets all the terms in this termset in an ordered tree using the appropriate sort ordering
153
- * ** This is an expensive operation and you should strongly consider caching the results **
154
- *
155
- * @param props Optional set of properties controlling how the tree is retrieved.
156
- */
157
- async getAllChildrenAsOrderedTree(props = {}) {
158
- const selects = ["*", "customSortOrder"];
159
- if (props.retrieveProperties) {
160
- selects.push("properties", "localProperties");
161
- }
162
- const setInfo = await this.select(...selects)();
163
- const tree = [];
164
- const childIds = [];
165
- const ensureOrder = (terms, sorts, setSorts) => {
166
- // handle no custom sort information present
167
- if (!isArray(sorts) && !isArray(setSorts)) {
168
- return terms;
169
- }
170
- let ordering = null;
171
- if (sorts === null && setSorts.length > 0) {
172
- ordering = [...setSorts];
173
- }
174
- else {
175
- const index = sorts.findIndex(v => v.setId === setInfo.id);
176
- if (index >= 0) {
177
- ordering = [...sorts[index].order];
178
- }
179
- }
180
- if (ordering !== null) {
181
- const orderedChildren = [];
182
- ordering.forEach(o => {
183
- const found = terms.find(ch => o === ch.id);
184
- if (found) {
185
- orderedChildren.push(found);
186
- }
187
- });
188
- // we have a case where if a set is ordered and a term is added to that set
189
- // AND the ordering information hasn't been updated in the UI the new term will not have
190
- // any associated ordering information. See #1547 which reported this. So here we
191
- // append any terms remaining in "terms" not in "orderedChildren" to the end of "orderedChildren"
192
- orderedChildren.push(...terms.filter(info => ordering.indexOf(info.id) < 0));
193
- return orderedChildren;
194
- }
195
- return terms;
196
- };
197
- const visitor = async (source, parent) => {
198
- const children = await source();
199
- for (let i = 0; i < children.length; i++) {
200
- const child = children[i];
201
- childIds.push(child.id);
202
- const orderedTerm = {
203
- children: [],
204
- defaultLabel: child.labels.find(l => l.isDefault).name,
205
- ...child,
206
- };
207
- if (child.childrenCount > 0) {
208
- await visitor(this.getTermById(children[i].id).children.select(...selects), orderedTerm.children);
209
- orderedTerm.children = ensureOrder(orderedTerm.children, child.customSortOrder);
210
- }
211
- parent.push(orderedTerm);
212
- }
213
- };
214
- // There is a series of issues where users expect that copied terms appear in the result of this method call. Copied terms are not "children" so we need
215
- // to get all the children + all the "/terms" and filter out the children. This is expensive but this method call is already indicated to be used with caching
216
- await visitor(this.children.select(...selects), tree);
217
- await visitor(async () => {
218
- const terms = await Terms(this).select(...selects)();
219
- return terms.filter((t) => childIds.indexOf(t.id) < 0);
220
- }, tree);
221
- return ensureOrder(tree, null, setInfo.customSortOrder);
222
- }
223
- }
224
- export const TermSet = spInvokableFactory(_TermSet);
225
- let _Children = class _Children extends _SPCollection {
226
- /**
227
- * Adds a new term set to this collection
228
- * @param props The set of properties
229
- * @returns The information on the create group
230
- */
231
- add(props) {
232
- return spPost(this, body(props));
233
- }
234
- };
235
- _Children = __decorate([
236
- defaultPath("children")
237
- ], _Children);
238
- export { _Children };
239
- export const Children = spInvokableFactory(_Children);
240
- let _Terms = class _Terms extends _SPCollection {
241
- /**
242
- * Gets a term group by id
243
- *
244
- * @param id Id of the term group to access
245
- */
246
- getById(id) {
247
- return Term(this, id);
248
- }
249
- };
250
- _Terms = __decorate([
251
- defaultPath("terms")
252
- ], _Terms);
253
- export { _Terms };
254
- export const Terms = spInvokableFactory(_Terms);
255
- export class _Term extends _SPInstance {
256
- get children() {
257
- return Children(this);
258
- }
259
- get relations() {
260
- return Relations(this);
261
- }
262
- get set() {
263
- return TermSet(this, "set");
264
- }
265
- /**
266
- * Update settings for TermSet
267
- *
268
- * @param props The set or properties to update
269
- * @returns The updated term set information
270
- */
271
- update(props) {
272
- return spPatch(this, body(props));
273
- }
274
- /**
275
- * Deletes this group
276
- *
277
- * @returns void
278
- */
279
- delete() {
280
- return spDelete(this);
281
- }
282
- }
283
- export const Term = spInvokableFactory(_Term);
284
- let _Relations = class _Relations extends _SPCollection {
285
- /**
286
- * Adds a new relation to this term
287
- * @param props The set of properties
288
- * @returns The information on the created relation
289
- */
290
- add(props) {
291
- return spPost(this, body(props));
292
- }
293
- };
294
- _Relations = __decorate([
295
- defaultPath("relations")
296
- ], _Relations);
297
- export { _Relations };
298
- export const Relations = spInvokableFactory(_Relations);
299
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../packages/sp/taxonomy/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC9G,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD;;;GAGG;AAEH,IAAa,UAAU,GAAvB,MAAa,UAAW,SAAQ,WAA2B;IAEvD;;OAEG;IACH,IAAW,MAAM;QACb,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QACX,OAAO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