mcdev 10.1.1 → 10.2.0

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.
@@ -1,10 +1,7 @@
1
1
  export default AttributeGroup;
2
2
  export type MetadataTypeItem = import("../../types/mcdev.d.js").MetadataTypeItem;
3
+ export type MetadataTypeMap = import("../../types/mcdev.d.js").MetadataTypeMap;
3
4
  export type MetadataTypeMapObj = import("../../types/mcdev.d.js").MetadataTypeMapObj;
4
- /**
5
- * @typedef {import('../../types/mcdev.d.js').MetadataTypeItem} MetadataTypeItem
6
- * @typedef {import('../../types/mcdev.d.js').MetadataTypeMapObj} MetadataTypeMapObj
7
- */
8
5
  /**
9
6
  * AttributeGroup MetadataType
10
7
  *
@@ -34,14 +31,56 @@ declare class AttributeGroup extends MetadataType {
34
31
  * @returns {MetadataTypeItem} metadata
35
32
  */
36
33
  static postRetrieveTasks(metadata: MetadataTypeItem): MetadataTypeItem;
34
+ /**
35
+ * prepares for deployment
36
+ *
37
+ * @param {MetadataTypeItem} metadata a single item
38
+ * @returns {Promise.<MetadataTypeItem>} Promise
39
+ */
40
+ static preDeployTasks(metadata: MetadataTypeItem): Promise<MetadataTypeItem>;
41
+ /**
42
+ * Creates a single attributeGroup
43
+ *
44
+ * @param {MetadataTypeItem} metadata single metadata entry
45
+ * @returns {Promise.<object> | null} Promise of API response or null in case of an error
46
+ */
47
+ static create(metadata: MetadataTypeItem): Promise<object> | null;
48
+ /**
49
+ * helper for {@link MetadataType.createREST}: unwraps the created item so that upsert can parse it like a retrieved item
50
+ *
51
+ * @param {MetadataTypeItem} metadataEntry a single metadata Entry
52
+ * @param {object} apiResponse varies depending on the API call
53
+ * @returns {Promise.<object>} apiResponse, potentially modified
54
+ */
55
+ static postCreateTasks(metadataEntry: MetadataTypeItem, apiResponse: object): Promise<object>;
56
+ /**
57
+ * attributeGroups cannot be changed via API after creation (only a rename exists, which also overwrites the key on the server).
58
+ * Nothing is sent; differences are only reported. Compares against the raw cached API data.
59
+ *
60
+ * @param {MetadataTypeItem} metadata single metadata entry
61
+ * @param {MetadataTypeItem} metadataBefore cached version from the server
62
+ * @returns {Promise.<null>} always null as nothing is updated
63
+ */
64
+ static update(metadata: MetadataTypeItem, metadataBefore: MetadataTypeItem): Promise<null>;
65
+ /**
66
+ * caches attributeGroup and attributeSet (raw API format) unless already cached; shared by both types' preDeleteTasks
67
+ *
68
+ * @returns {Promise.<void>} -
69
+ */
70
+ static cacheForDelete(): Promise<void>;
71
+ /**
72
+ * makes sure attributeGroup and attributeSet are cached before deleting
73
+ *
74
+ * @returns {Promise.<void>} -
75
+ */
76
+ static preDeleteTasks(): Promise<void>;
37
77
  }
38
78
  declare namespace AttributeGroup {
39
79
  let definition: {
40
80
  bodyIteratorField: string;
41
- dependencies: string[];
42
- dependencyGraph: {
43
- attributeSet: string[];
44
- };
81
+ dependencies: any[];
82
+ dependencyGraph: {};
83
+ deleteSynchronously: boolean;
45
84
  hasExtended: boolean;
46
85
  idField: string;
47
86
  keyIsFixed: boolean;
@@ -91,32 +130,32 @@ declare namespace AttributeGroup {
91
130
  template: boolean;
92
131
  };
93
132
  'attributeSetIdentifiers[].connectingID.identifierType': {
94
- isCreateable: any;
95
- isUpdateable: any;
133
+ isCreateable: boolean;
134
+ isUpdateable: boolean;
96
135
  retrieving: boolean;
97
136
  template: boolean;
98
137
  };
99
138
  'attributeSetIdentifiers[].definitionID': {
100
- isCreateable: any;
101
- isUpdateable: any;
139
+ isCreateable: boolean;
140
+ isUpdateable: boolean;
102
141
  retrieving: boolean;
103
142
  template: boolean;
104
143
  };
105
144
  'attributeSetIdentifiers[].definitionKey': {
106
- isCreateable: any;
107
- isUpdateable: any;
145
+ isCreateable: boolean;
146
+ isUpdateable: boolean;
108
147
  retrieving: boolean;
109
148
  template: boolean;
110
149
  };
111
150
  'attributeSetIdentifiers[].definitionName.value': {
112
- isCreateable: any;
113
- isUpdateable: any;
151
+ isCreateable: boolean;
152
+ isUpdateable: boolean;
114
153
  retrieving: boolean;
115
154
  template: boolean;
116
155
  };
117
156
  'attributeSetIdentifiers[].namespace': {
118
- isCreateable: any;
119
- isUpdateable: any;
157
+ isCreateable: boolean;
158
+ isUpdateable: boolean;
120
159
  retrieving: boolean;
121
160
  template: boolean;
122
161
  };
@@ -180,6 +219,12 @@ declare namespace AttributeGroup {
180
219
  retrieving: boolean;
181
220
  template: boolean;
182
221
  };
222
+ definitionName: {
223
+ isCreateable: boolean;
224
+ isUpdateable: boolean;
225
+ retrieving: boolean;
226
+ template: boolean;
227
+ };
183
228
  'definitionName.value': {
184
229
  isCreateable: boolean;
185
230
  isUpdateable: boolean;
@@ -235,20 +280,20 @@ declare namespace AttributeGroup {
235
280
  template: boolean;
236
281
  };
237
282
  'localizedDescription.resourceSetKey': {
238
- isCreateable: any;
239
- isUpdateable: any;
283
+ isCreateable: boolean;
284
+ isUpdateable: boolean;
240
285
  retrieving: boolean;
241
286
  template: boolean;
242
287
  };
243
288
  'localizedDescription.resourceValueKey': {
244
- isCreateable: any;
245
- isUpdateable: any;
289
+ isCreateable: boolean;
290
+ isUpdateable: boolean;
246
291
  retrieving: boolean;
247
292
  template: boolean;
248
293
  };
249
294
  'localizedDescription.value': {
250
- isCreateable: any;
251
- isUpdateable: any;
295
+ isCreateable: boolean;
296
+ isUpdateable: boolean;
252
297
  retrieving: boolean;
253
298
  template: boolean;
254
299
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AttributeGroup.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/AttributeGroup.js"],"names":[],"mappings":";+BAOa,OAAO,wBAAwB,EAAE,gBAAgB;iCACjD,OAAO,wBAAwB,EAAE,kBAAkB;AAFhE;;;GAGG;AAEH;;;;GAIG;AACH;IACI;;;;;;;;OAQG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;OAIG;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