contentful-management 7.44.2 → 7.45.3
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.
- package/dist/contentful-management.browser.js +52 -68
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +52 -68
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +47 -63
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/api-key.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/organization.js +2 -2
- package/dist/es-modules/adapters/REST/endpoints/space.js +4 -4
- package/dist/es-modules/adapters/REST/rest-adapter.js +1 -1
- package/dist/es-modules/common-utils.js +1 -1
- package/dist/es-modules/constants/editor-interface-defaults/sidebar-defaults.js +1 -8
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/entities/locale.js +1 -1
- package/dist/es-modules/plain/as-iterator.js +12 -8
- package/dist/typings/create-entry-api.d.ts +3 -3
- package/dist/typings/create-environment-api.d.ts +4 -3
- package/dist/typings/entities/api-key.d.ts +1 -1578
- package/dist/typings/entities/app-bundle.d.ts +1 -1578
- package/dist/typings/entities/app-definition.d.ts +1 -1578
- package/dist/typings/entities/app-installation.d.ts +1 -1578
- package/dist/typings/entities/app-upload.d.ts +1 -1578
- package/dist/typings/entities/asset.d.ts +1 -1577
- package/dist/typings/entities/comment.d.ts +1 -1578
- package/dist/typings/entities/content-type.d.ts +1 -1578
- package/dist/typings/entities/editor-interface.d.ts +8 -1585
- package/dist/typings/entities/entry.d.ts +1 -1578
- package/dist/typings/entities/environment-alias.d.ts +1 -1578
- package/dist/typings/entities/environment.d.ts +1 -1578
- package/dist/typings/entities/extension.d.ts +1 -1578
- package/dist/typings/entities/locale.d.ts +1 -1578
- package/dist/typings/entities/organization-membership.d.ts +1 -1578
- package/dist/typings/entities/organization.d.ts +1 -1578
- package/dist/typings/entities/personal-access-token.d.ts +1 -1578
- package/dist/typings/entities/preview-api-key.d.ts +1 -1578
- package/dist/typings/entities/release-action.d.ts +1 -1578
- package/dist/typings/entities/role.d.ts +1 -1578
- package/dist/typings/entities/scheduled-action.d.ts +1 -1578
- package/dist/typings/entities/snapshot.d.ts +1 -1578
- package/dist/typings/entities/space-member.d.ts +1 -1578
- package/dist/typings/entities/space-membership.d.ts +1 -1578
- package/dist/typings/entities/space.d.ts +1 -1578
- package/dist/typings/entities/tag.d.ts +1 -1578
- package/dist/typings/entities/task.d.ts +1 -1578
- package/dist/typings/entities/team-membership.d.ts +1 -1578
- package/dist/typings/entities/team-space-membership.d.ts +1 -1578
- package/dist/typings/entities/team.d.ts +1 -1578
- package/dist/typings/entities/usage.d.ts +1 -1578
- package/dist/typings/entities/user.d.ts +1 -1578
- package/dist/typings/entities/webhook.d.ts +1 -1578
- package/dist/typings/export-types.d.ts +1 -1
- package/dist/typings/plain/wrappers/wrap.d.ts +4 -4
- package/package.json +14 -13
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="json-patch" />
|
|
3
1
|
import { BasicMetaSysProps, DefaultElements, GetEntryParams, GetTaskParams, Link, MakeRequest, SysLink } from '../common-types';
|
|
4
2
|
export declare type TaskStatus = 'active' | 'resolved';
|
|
5
3
|
export declare type TaskSysProps = Pick<BasicMetaSysProps, 'id' | 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'> & {
|
|
@@ -41,1580 +39,5 @@ export declare function wrapTask(makeRequest: MakeRequest, data: TaskProps): Tas
|
|
|
41
39
|
/**
|
|
42
40
|
* @private
|
|
43
41
|
*/
|
|
44
|
-
export declare const wrapTaskCollection: (makeRequest:
|
|
45
|
-
(opts: import("../common-types").MROpts<"Http", "get", false>): Promise<any>;
|
|
46
|
-
(opts: import("../common-types").MROpts<"Http", "patch", false>): Promise<any>;
|
|
47
|
-
(opts: import("../common-types").MROpts<"Http", "post", false>): Promise<any>;
|
|
48
|
-
(opts: import("../common-types").MROpts<"Http", "put", false>): Promise<any>;
|
|
49
|
-
(opts: import("../common-types").MROpts<"Http", "delete", false>): Promise<any>;
|
|
50
|
-
(opts: import("../common-types").MROpts<"Http", "request", false>): Promise<any>;
|
|
51
|
-
(opts: import("../common-types").MROpts<"AppBundle", "get", false>): Promise<import("./app-bundle").AppBundleProps>;
|
|
52
|
-
(opts: import("../common-types").MROpts<"AppBundle", "getMany", false>): Promise<import("../common-types").CollectionProp<import("./app-bundle").AppBundleProps>>;
|
|
53
|
-
(opts: import("../common-types").MROpts<"AppBundle", "delete", false>): Promise<void>;
|
|
54
|
-
(opts: {
|
|
55
|
-
entityType: "AppBundle";
|
|
56
|
-
action: "create";
|
|
57
|
-
} & {
|
|
58
|
-
params: import("../common-types").GetAppDefinitionParams;
|
|
59
|
-
} & {
|
|
60
|
-
payload: import("./app-bundle").CreateAppBundleProps;
|
|
61
|
-
}): Promise<import("./app-bundle").AppBundleProps>;
|
|
62
|
-
(opts: {
|
|
63
|
-
entityType: "ApiKey";
|
|
64
|
-
action: "get";
|
|
65
|
-
} & {
|
|
66
|
-
params: import("../common-types").GetSpaceParams & {
|
|
67
|
-
apiKeyId: string;
|
|
68
|
-
};
|
|
69
|
-
}): Promise<import("./api-key").ApiKeyProps>;
|
|
70
|
-
(opts: {
|
|
71
|
-
entityType: "ApiKey";
|
|
72
|
-
action: "getMany";
|
|
73
|
-
} & {
|
|
74
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
|
|
75
|
-
}): Promise<import("../common-types").CollectionProp<import("./api-key").ApiKeyProps>>;
|
|
76
|
-
(opts: {
|
|
77
|
-
entityType: "ApiKey";
|
|
78
|
-
action: "create";
|
|
79
|
-
} & {
|
|
80
|
-
params: import("../common-types").GetSpaceParams;
|
|
81
|
-
} & {
|
|
82
|
-
payload: Pick<import("./api-key").ApiKeyProps, "description" | "name" | "environments">;
|
|
83
|
-
} & {
|
|
84
|
-
headers?: Record<string, unknown> | undefined;
|
|
85
|
-
}): Promise<import("./api-key").ApiKeyProps>;
|
|
86
|
-
(opts: {
|
|
87
|
-
entityType: "ApiKey";
|
|
88
|
-
action: "createWithId";
|
|
89
|
-
} & {
|
|
90
|
-
params: import("../common-types").GetSpaceParams & {
|
|
91
|
-
apiKeyId: string;
|
|
92
|
-
};
|
|
93
|
-
} & {
|
|
94
|
-
payload: Pick<import("./api-key").ApiKeyProps, "description" | "name" | "environments">;
|
|
95
|
-
} & {
|
|
96
|
-
headers?: Record<string, unknown> | undefined;
|
|
97
|
-
}): Promise<import("./api-key").ApiKeyProps>;
|
|
98
|
-
(opts: {
|
|
99
|
-
entityType: "ApiKey";
|
|
100
|
-
action: "update";
|
|
101
|
-
} & {
|
|
102
|
-
params: import("../common-types").GetSpaceParams & {
|
|
103
|
-
apiKeyId: string;
|
|
104
|
-
};
|
|
105
|
-
} & {
|
|
106
|
-
payload: import("./api-key").ApiKeyProps;
|
|
107
|
-
} & {
|
|
108
|
-
headers?: Record<string, unknown> | undefined;
|
|
109
|
-
}): Promise<import("./api-key").ApiKeyProps>;
|
|
110
|
-
(opts: {
|
|
111
|
-
entityType: "ApiKey";
|
|
112
|
-
action: "delete";
|
|
113
|
-
} & {
|
|
114
|
-
params: import("../common-types").GetSpaceParams & {
|
|
115
|
-
apiKeyId: string;
|
|
116
|
-
};
|
|
117
|
-
}): Promise<any>;
|
|
118
|
-
(opts: {
|
|
119
|
-
entityType: "AppDefinition";
|
|
120
|
-
action: "get";
|
|
121
|
-
} & {
|
|
122
|
-
params: import("../common-types").GetOrganizationParams & {
|
|
123
|
-
appDefinitionId: string;
|
|
124
|
-
};
|
|
125
|
-
}): Promise<import("./app-definition").AppDefinitionProps>;
|
|
126
|
-
(opts: {
|
|
127
|
-
entityType: "AppDefinition";
|
|
128
|
-
action: "getMany";
|
|
129
|
-
} & {
|
|
130
|
-
params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
|
|
131
|
-
}): Promise<import("../common-types").CollectionProp<import("./app-definition").AppDefinitionProps>>;
|
|
132
|
-
(opts: {
|
|
133
|
-
entityType: "AppDefinition";
|
|
134
|
-
action: "create";
|
|
135
|
-
} & {
|
|
136
|
-
params: import("../common-types").GetOrganizationParams;
|
|
137
|
-
} & {
|
|
138
|
-
payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./app-definition").AppDefinitionProps, "name" | "src" | "locations" | "parameters">, "name" | "parameters"> & Partial<Pick<Pick<import("./app-definition").AppDefinitionProps, "name" | "src" | "locations" | "parameters">, "src" | "locations">>>;
|
|
139
|
-
}): Promise<import("./app-definition").AppDefinitionProps>;
|
|
140
|
-
(opts: {
|
|
141
|
-
entityType: "AppDefinition";
|
|
142
|
-
action: "update";
|
|
143
|
-
} & {
|
|
144
|
-
params: import("../common-types").GetAppDefinitionParams;
|
|
145
|
-
} & {
|
|
146
|
-
payload: import("./app-definition").AppDefinitionProps;
|
|
147
|
-
} & {
|
|
148
|
-
headers?: Record<string, unknown> | undefined;
|
|
149
|
-
}): Promise<import("./app-definition").AppDefinitionProps>;
|
|
150
|
-
(opts: {
|
|
151
|
-
entityType: "AppDefinition";
|
|
152
|
-
action: "delete";
|
|
153
|
-
} & {
|
|
154
|
-
params: import("../common-types").GetAppDefinitionParams;
|
|
155
|
-
}): Promise<any>;
|
|
156
|
-
(opts: {
|
|
157
|
-
entityType: "AppInstallation";
|
|
158
|
-
action: "get";
|
|
159
|
-
} & {
|
|
160
|
-
params: import("../common-types").GetAppInstallationParams;
|
|
161
|
-
}): Promise<import("./app-installation").AppInstallationProps>;
|
|
162
|
-
(opts: {
|
|
163
|
-
entityType: "AppInstallation";
|
|
164
|
-
action: "getMany";
|
|
165
|
-
} & {
|
|
166
|
-
params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").PaginationQueryParams;
|
|
167
|
-
}): Promise<import("../common-types").CollectionProp<import("./app-installation").AppInstallationProps>>;
|
|
168
|
-
(opts: {
|
|
169
|
-
entityType: "AppInstallation";
|
|
170
|
-
action: "upsert";
|
|
171
|
-
} & {
|
|
172
|
-
params: import("../common-types").GetAppInstallationParams;
|
|
173
|
-
} & {
|
|
174
|
-
payload: Pick<import("./app-installation").AppInstallationProps, "parameters">;
|
|
175
|
-
} & {
|
|
176
|
-
headers?: Record<string, unknown> | undefined;
|
|
177
|
-
}): Promise<import("./app-installation").AppInstallationProps>;
|
|
178
|
-
(opts: {
|
|
179
|
-
entityType: "AppInstallation";
|
|
180
|
-
action: "delete";
|
|
181
|
-
} & {
|
|
182
|
-
params: import("../common-types").GetAppInstallationParams;
|
|
183
|
-
}): Promise<any>;
|
|
184
|
-
(opts: {
|
|
185
|
-
entityType: "Asset";
|
|
186
|
-
action: "getMany";
|
|
187
|
-
} & {
|
|
188
|
-
params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
|
|
189
|
-
}): Promise<import("../common-types").CollectionProp<import("./asset").AssetProps>>;
|
|
190
|
-
(opts: {
|
|
191
|
-
entityType: "Asset";
|
|
192
|
-
action: "get";
|
|
193
|
-
} & {
|
|
194
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
195
|
-
assetId: string;
|
|
196
|
-
} & import("../common-types").QueryParams;
|
|
197
|
-
}): Promise<import("./asset").AssetProps>;
|
|
198
|
-
(opts: {
|
|
199
|
-
entityType: "Asset";
|
|
200
|
-
action: "update";
|
|
201
|
-
} & {
|
|
202
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
203
|
-
assetId: string;
|
|
204
|
-
};
|
|
205
|
-
} & {
|
|
206
|
-
payload: import("./asset").AssetProps;
|
|
207
|
-
} & {
|
|
208
|
-
headers?: Record<string, unknown> | undefined;
|
|
209
|
-
}): Promise<import("./asset").AssetProps>;
|
|
210
|
-
(opts: {
|
|
211
|
-
entityType: "Asset";
|
|
212
|
-
action: "delete";
|
|
213
|
-
} & {
|
|
214
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
215
|
-
assetId: string;
|
|
216
|
-
};
|
|
217
|
-
}): Promise<any>;
|
|
218
|
-
(opts: {
|
|
219
|
-
entityType: "Asset";
|
|
220
|
-
action: "publish";
|
|
221
|
-
} & {
|
|
222
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
223
|
-
assetId: string;
|
|
224
|
-
};
|
|
225
|
-
} & {
|
|
226
|
-
payload: import("./asset").AssetProps;
|
|
227
|
-
}): Promise<import("./asset").AssetProps>;
|
|
228
|
-
(opts: {
|
|
229
|
-
entityType: "Asset";
|
|
230
|
-
action: "unpublish";
|
|
231
|
-
} & {
|
|
232
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
233
|
-
assetId: string;
|
|
234
|
-
};
|
|
235
|
-
}): Promise<import("./asset").AssetProps>;
|
|
236
|
-
(opts: {
|
|
237
|
-
entityType: "Asset";
|
|
238
|
-
action: "archive";
|
|
239
|
-
} & {
|
|
240
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
241
|
-
assetId: string;
|
|
242
|
-
};
|
|
243
|
-
}): Promise<import("./asset").AssetProps>;
|
|
244
|
-
(opts: {
|
|
245
|
-
entityType: "Asset";
|
|
246
|
-
action: "unarchive";
|
|
247
|
-
} & {
|
|
248
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
249
|
-
assetId: string;
|
|
250
|
-
};
|
|
251
|
-
}): Promise<import("./asset").AssetProps>;
|
|
252
|
-
(opts: {
|
|
253
|
-
entityType: "Asset";
|
|
254
|
-
action: "create";
|
|
255
|
-
} & {
|
|
256
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
257
|
-
} & {
|
|
258
|
-
payload: Pick<import("./asset").AssetProps, "metadata" | "fields">;
|
|
259
|
-
}): Promise<import("./asset").AssetProps>;
|
|
260
|
-
(opts: {
|
|
261
|
-
entityType: "Asset";
|
|
262
|
-
action: "createWithId";
|
|
263
|
-
} & {
|
|
264
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
265
|
-
assetId: string;
|
|
266
|
-
};
|
|
267
|
-
} & {
|
|
268
|
-
payload: Pick<import("./asset").AssetProps, "metadata" | "fields">;
|
|
269
|
-
}): Promise<import("./asset").AssetProps>;
|
|
270
|
-
(opts: {
|
|
271
|
-
entityType: "Asset";
|
|
272
|
-
action: "createFromFiles";
|
|
273
|
-
} & {
|
|
274
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
275
|
-
} & {
|
|
276
|
-
payload: Pick<import("./asset").AssetFileProp, "fields">;
|
|
277
|
-
}): Promise<import("./asset").AssetProps>;
|
|
278
|
-
(opts: {
|
|
279
|
-
entityType: "Asset";
|
|
280
|
-
action: "processForAllLocales";
|
|
281
|
-
} & {
|
|
282
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
283
|
-
asset: import("./asset").AssetProps;
|
|
284
|
-
options?: import("./asset").AssetProcessingForLocale | undefined;
|
|
285
|
-
};
|
|
286
|
-
}): Promise<import("./asset").AssetProps>;
|
|
287
|
-
(opts: {
|
|
288
|
-
entityType: "Asset";
|
|
289
|
-
action: "processForLocale";
|
|
290
|
-
} & {
|
|
291
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
292
|
-
asset: import("./asset").AssetProps;
|
|
293
|
-
locale: string;
|
|
294
|
-
options?: import("./asset").AssetProcessingForLocale | undefined;
|
|
295
|
-
};
|
|
296
|
-
}): Promise<import("./asset").AssetProps>;
|
|
297
|
-
(opts: {
|
|
298
|
-
entityType: "AppUpload";
|
|
299
|
-
action: "get";
|
|
300
|
-
} & {
|
|
301
|
-
params: import("../common-types").GetAppUploadParams;
|
|
302
|
-
}): Promise<import("./app-upload").AppUploadProps>;
|
|
303
|
-
(opts: {
|
|
304
|
-
entityType: "AppUpload";
|
|
305
|
-
action: "delete";
|
|
306
|
-
} & {
|
|
307
|
-
params: import("../common-types").GetAppUploadParams;
|
|
308
|
-
}): Promise<void>;
|
|
309
|
-
(opts: {
|
|
310
|
-
entityType: "AppUpload";
|
|
311
|
-
action: "create";
|
|
312
|
-
} & {
|
|
313
|
-
params: import("../common-types").GetOrganizationParams;
|
|
314
|
-
} & {
|
|
315
|
-
payload: {
|
|
316
|
-
file: string | ArrayBuffer | import("stream").Stream;
|
|
317
|
-
};
|
|
318
|
-
}): Promise<import("./app-upload").AppUploadProps>;
|
|
319
|
-
(opts: {
|
|
320
|
-
entityType: "AppDetails";
|
|
321
|
-
action: "upsert";
|
|
322
|
-
} & {
|
|
323
|
-
params: import("../common-types").GetAppDefinitionParams;
|
|
324
|
-
} & {
|
|
325
|
-
payload: import("./app-details").CreateAppDetailsProps;
|
|
326
|
-
}): Promise<import("./app-details").AppDetailsProps>;
|
|
327
|
-
(opts: {
|
|
328
|
-
entityType: "AppDetails";
|
|
329
|
-
action: "get";
|
|
330
|
-
} & {
|
|
331
|
-
params: import("../common-types").GetAppDefinitionParams;
|
|
332
|
-
}): Promise<import("./app-details").AppDetailsProps>;
|
|
333
|
-
(opts: {
|
|
334
|
-
entityType: "AppDetails";
|
|
335
|
-
action: "delete";
|
|
336
|
-
} & {
|
|
337
|
-
params: import("../common-types").GetAppDefinitionParams;
|
|
338
|
-
}): Promise<void>;
|
|
339
|
-
(opts: {
|
|
340
|
-
entityType: "AppSignedRequest";
|
|
341
|
-
action: "create";
|
|
342
|
-
} & {
|
|
343
|
-
params: import("../common-types").GetAppInstallationParams;
|
|
344
|
-
} & {
|
|
345
|
-
payload: import("./app-signed-request").CreateAppSignedRequestProps;
|
|
346
|
-
}): Promise<import("./app-signed-request").AppSignedRequestProps>;
|
|
347
|
-
(opts: {
|
|
348
|
-
entityType: "AppSigningSecret";
|
|
349
|
-
action: "upsert";
|
|
350
|
-
} & {
|
|
351
|
-
params: import("../common-types").GetAppDefinitionParams;
|
|
352
|
-
} & {
|
|
353
|
-
payload: import("./app-signing-secret").CreateAppSigningSecretProps;
|
|
354
|
-
}): Promise<import("./app-signing-secret").AppSigningSecretProps>;
|
|
355
|
-
(opts: {
|
|
356
|
-
entityType: "AppSigningSecret";
|
|
357
|
-
action: "get";
|
|
358
|
-
} & {
|
|
359
|
-
params: import("../common-types").GetAppDefinitionParams;
|
|
360
|
-
}): Promise<import("./app-signing-secret").AppSigningSecretProps>;
|
|
361
|
-
(opts: {
|
|
362
|
-
entityType: "AppSigningSecret";
|
|
363
|
-
action: "delete";
|
|
364
|
-
} & {
|
|
365
|
-
params: import("../common-types").GetAppDefinitionParams;
|
|
366
|
-
}): Promise<void>;
|
|
367
|
-
(opts: {
|
|
368
|
-
entityType: "AssetKey";
|
|
369
|
-
action: "create";
|
|
370
|
-
} & {
|
|
371
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
372
|
-
} & {
|
|
373
|
-
payload: import("./asset-key").CreateAssetKeyProps;
|
|
374
|
-
}): Promise<import("./asset-key").AssetKeyProps>;
|
|
375
|
-
(opts: {
|
|
376
|
-
entityType: "BulkAction";
|
|
377
|
-
action: "get";
|
|
378
|
-
} & {
|
|
379
|
-
params: import("../common-types").GetBulkActionParams;
|
|
380
|
-
}): Promise<import("./bulk-action").BulkActionProps<any>>;
|
|
381
|
-
(opts: {
|
|
382
|
-
entityType: "BulkAction";
|
|
383
|
-
action: "publish";
|
|
384
|
-
} & {
|
|
385
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
386
|
-
} & {
|
|
387
|
-
payload: import("./bulk-action").BulkActionPublishPayload;
|
|
388
|
-
}): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionPublishPayload>>;
|
|
389
|
-
(opts: {
|
|
390
|
-
entityType: "BulkAction";
|
|
391
|
-
action: "unpublish";
|
|
392
|
-
} & {
|
|
393
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
394
|
-
} & {
|
|
395
|
-
payload: import("./bulk-action").BulkActionUnpublishPayload;
|
|
396
|
-
}): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionUnpublishPayload>>;
|
|
397
|
-
(opts: {
|
|
398
|
-
entityType: "BulkAction";
|
|
399
|
-
action: "validate";
|
|
400
|
-
} & {
|
|
401
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
402
|
-
} & {
|
|
403
|
-
payload: import("./bulk-action").BulkActionValidatePayload;
|
|
404
|
-
}): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionValidatePayload>>;
|
|
405
|
-
(opts: {
|
|
406
|
-
entityType: "Comment";
|
|
407
|
-
action: "get";
|
|
408
|
-
} & {
|
|
409
|
-
params: import("../common-types").GetCommentParams;
|
|
410
|
-
}): Promise<import("./comment").CommentProps>;
|
|
411
|
-
(opts: {
|
|
412
|
-
entityType: "Comment";
|
|
413
|
-
action: "getAll";
|
|
414
|
-
} & {
|
|
415
|
-
params: GetEntryParams;
|
|
416
|
-
}): Promise<import("../common-types").CollectionProp<import("./comment").CommentProps>>;
|
|
417
|
-
(opts: {
|
|
418
|
-
entityType: "Comment";
|
|
419
|
-
action: "create";
|
|
420
|
-
} & {
|
|
421
|
-
params: GetEntryParams;
|
|
422
|
-
} & {
|
|
423
|
-
payload: Pick<import("./comment").CommentProps, "body">;
|
|
424
|
-
}): Promise<import("./comment").CommentProps>;
|
|
425
|
-
(opts: {
|
|
426
|
-
entityType: "Comment";
|
|
427
|
-
action: "update";
|
|
428
|
-
} & {
|
|
429
|
-
params: import("../common-types").GetCommentParams;
|
|
430
|
-
} & {
|
|
431
|
-
payload: import("./comment").UpdateCommentProps;
|
|
432
|
-
} & {
|
|
433
|
-
headers?: Record<string, unknown> | undefined;
|
|
434
|
-
}): Promise<import("./comment").CommentProps>;
|
|
435
|
-
(opts: {
|
|
436
|
-
entityType: "Comment";
|
|
437
|
-
action: "delete";
|
|
438
|
-
} & {
|
|
439
|
-
params: import("./comment").DeleteCommentParams;
|
|
440
|
-
}): Promise<void>;
|
|
441
|
-
(opts: {
|
|
442
|
-
entityType: "ContentType";
|
|
443
|
-
action: "get";
|
|
444
|
-
} & {
|
|
445
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
446
|
-
contentTypeId: string;
|
|
447
|
-
} & import("../common-types").QueryParams;
|
|
448
|
-
}): Promise<import("./content-type").ContentTypeProps>;
|
|
449
|
-
(opts: {
|
|
450
|
-
entityType: "ContentType";
|
|
451
|
-
action: "getMany";
|
|
452
|
-
} & {
|
|
453
|
-
params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
|
|
454
|
-
}): Promise<import("../common-types").CollectionProp<import("./content-type").ContentTypeProps>>;
|
|
455
|
-
(opts: {
|
|
456
|
-
entityType: "ContentType";
|
|
457
|
-
action: "update";
|
|
458
|
-
} & {
|
|
459
|
-
params: import("../common-types").GetContentTypeParams;
|
|
460
|
-
} & {
|
|
461
|
-
payload: import("./content-type").ContentTypeProps;
|
|
462
|
-
} & {
|
|
463
|
-
headers?: Record<string, unknown> | undefined;
|
|
464
|
-
}): Promise<import("./content-type").ContentTypeProps>;
|
|
465
|
-
(opts: {
|
|
466
|
-
entityType: "ContentType";
|
|
467
|
-
action: "create";
|
|
468
|
-
} & {
|
|
469
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
470
|
-
} & {
|
|
471
|
-
payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "name" | "fields"> & Partial<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "description" | "displayField">>>;
|
|
472
|
-
}): Promise<import("./content-type").ContentTypeProps>;
|
|
473
|
-
(opts: {
|
|
474
|
-
entityType: "ContentType";
|
|
475
|
-
action: "createWithId";
|
|
476
|
-
} & {
|
|
477
|
-
params: import("../common-types").GetContentTypeParams;
|
|
478
|
-
} & {
|
|
479
|
-
payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "name" | "fields"> & Partial<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "description" | "displayField">>>;
|
|
480
|
-
}): Promise<import("./content-type").ContentTypeProps>;
|
|
481
|
-
(opts: {
|
|
482
|
-
entityType: "ContentType";
|
|
483
|
-
action: "delete";
|
|
484
|
-
} & {
|
|
485
|
-
params: import("../common-types").GetContentTypeParams;
|
|
486
|
-
}): Promise<any>;
|
|
487
|
-
(opts: {
|
|
488
|
-
entityType: "ContentType";
|
|
489
|
-
action: "publish";
|
|
490
|
-
} & {
|
|
491
|
-
params: import("../common-types").GetContentTypeParams;
|
|
492
|
-
} & {
|
|
493
|
-
payload: import("./content-type").ContentTypeProps;
|
|
494
|
-
}): Promise<import("./content-type").ContentTypeProps>;
|
|
495
|
-
(opts: {
|
|
496
|
-
entityType: "ContentType";
|
|
497
|
-
action: "unpublish";
|
|
498
|
-
} & {
|
|
499
|
-
params: import("../common-types").GetContentTypeParams;
|
|
500
|
-
}): Promise<import("./content-type").ContentTypeProps>;
|
|
501
|
-
(opts: {
|
|
502
|
-
entityType: "EditorInterface";
|
|
503
|
-
action: "get";
|
|
504
|
-
} & {
|
|
505
|
-
params: import("../common-types").GetEditorInterfaceParams;
|
|
506
|
-
}): Promise<import("./editor-interface").EditorInterfaceProps>;
|
|
507
|
-
(opts: {
|
|
508
|
-
entityType: "EditorInterface";
|
|
509
|
-
action: "getMany";
|
|
510
|
-
} & {
|
|
511
|
-
params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
|
|
512
|
-
}): Promise<import("../common-types").CollectionProp<import("./editor-interface").EditorInterfaceProps>>;
|
|
513
|
-
(opts: {
|
|
514
|
-
entityType: "EditorInterface";
|
|
515
|
-
action: "update";
|
|
516
|
-
} & {
|
|
517
|
-
params: import("../common-types").GetEditorInterfaceParams;
|
|
518
|
-
} & {
|
|
519
|
-
payload: import("./editor-interface").EditorInterfaceProps;
|
|
520
|
-
} & {
|
|
521
|
-
headers?: Record<string, unknown> | undefined;
|
|
522
|
-
}): Promise<import("./editor-interface").EditorInterfaceProps>;
|
|
523
|
-
(opts: {
|
|
524
|
-
entityType: "Environment";
|
|
525
|
-
action: "get";
|
|
526
|
-
} & {
|
|
527
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
528
|
-
}): Promise<import("./environment").EnvironmentProps>;
|
|
529
|
-
(opts: {
|
|
530
|
-
entityType: "Environment";
|
|
531
|
-
action: "getMany";
|
|
532
|
-
} & {
|
|
533
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").PaginationQueryParams;
|
|
534
|
-
}): Promise<import("../common-types").CollectionProp<import("./environment").EnvironmentProps>>;
|
|
535
|
-
(opts: {
|
|
536
|
-
entityType: "Environment";
|
|
537
|
-
action: "create";
|
|
538
|
-
} & {
|
|
539
|
-
params: import("../common-types").GetSpaceParams;
|
|
540
|
-
} & {
|
|
541
|
-
payload: Partial<Pick<import("./environment").EnvironmentProps, "name">>;
|
|
542
|
-
} & {
|
|
543
|
-
headers?: Record<string, unknown> | undefined;
|
|
544
|
-
}): Promise<import("./environment").EnvironmentProps>;
|
|
545
|
-
(opts: {
|
|
546
|
-
entityType: "Environment";
|
|
547
|
-
action: "createWithId";
|
|
548
|
-
} & {
|
|
549
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
550
|
-
sourceEnvironmentId?: string | undefined;
|
|
551
|
-
};
|
|
552
|
-
} & {
|
|
553
|
-
payload: Partial<Pick<import("./environment").EnvironmentProps, "name">>;
|
|
554
|
-
} & {
|
|
555
|
-
headers?: Record<string, unknown> | undefined;
|
|
556
|
-
}): Promise<import("./environment").EnvironmentProps>;
|
|
557
|
-
(opts: {
|
|
558
|
-
entityType: "Environment";
|
|
559
|
-
action: "update";
|
|
560
|
-
} & {
|
|
561
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
562
|
-
} & {
|
|
563
|
-
payload: import("./environment").EnvironmentProps;
|
|
564
|
-
} & {
|
|
565
|
-
headers?: Record<string, unknown> | undefined;
|
|
566
|
-
}): Promise<import("./environment").EnvironmentProps>;
|
|
567
|
-
(opts: {
|
|
568
|
-
entityType: "Environment";
|
|
569
|
-
action: "delete";
|
|
570
|
-
} & {
|
|
571
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
572
|
-
}): Promise<any>;
|
|
573
|
-
(opts: {
|
|
574
|
-
entityType: "EnvironmentAlias";
|
|
575
|
-
action: "get";
|
|
576
|
-
} & {
|
|
577
|
-
params: import("../common-types").GetSpaceEnvAliasParams;
|
|
578
|
-
}): Promise<import("./environment-alias").EnvironmentAliasProps>;
|
|
579
|
-
(opts: {
|
|
580
|
-
entityType: "EnvironmentAlias";
|
|
581
|
-
action: "getMany";
|
|
582
|
-
} & {
|
|
583
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").PaginationQueryParams;
|
|
584
|
-
}): Promise<import("../common-types").CollectionProp<import("./environment-alias").EnvironmentAliasProps>>;
|
|
585
|
-
(opts: {
|
|
586
|
-
entityType: "EnvironmentAlias";
|
|
587
|
-
action: "createWithId";
|
|
588
|
-
} & {
|
|
589
|
-
params: import("../common-types").GetSpaceEnvAliasParams;
|
|
590
|
-
} & {
|
|
591
|
-
payload: Pick<import("./environment-alias").EnvironmentAliasProps, "environment">;
|
|
592
|
-
} & {
|
|
593
|
-
headers?: Record<string, unknown> | undefined;
|
|
594
|
-
}): Promise<import("./environment-alias").EnvironmentAliasProps>;
|
|
595
|
-
(opts: {
|
|
596
|
-
entityType: "EnvironmentAlias";
|
|
597
|
-
action: "update";
|
|
598
|
-
} & {
|
|
599
|
-
params: import("../common-types").GetSpaceEnvAliasParams;
|
|
600
|
-
} & {
|
|
601
|
-
payload: import("./environment-alias").EnvironmentAliasProps;
|
|
602
|
-
} & {
|
|
603
|
-
headers?: Record<string, unknown> | undefined;
|
|
604
|
-
}): Promise<import("./environment-alias").EnvironmentAliasProps>;
|
|
605
|
-
(opts: {
|
|
606
|
-
entityType: "EnvironmentAlias";
|
|
607
|
-
action: "delete";
|
|
608
|
-
} & {
|
|
609
|
-
params: import("../common-types").GetSpaceEnvAliasParams;
|
|
610
|
-
}): Promise<any>;
|
|
611
|
-
(opts: {
|
|
612
|
-
entityType: "Entry";
|
|
613
|
-
action: "getMany";
|
|
614
|
-
} & {
|
|
615
|
-
params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
|
|
616
|
-
}): Promise<import("../common-types").CollectionProp<import("./entry").EntryProps<any>>>;
|
|
617
|
-
(opts: {
|
|
618
|
-
entityType: "Entry";
|
|
619
|
-
action: "get";
|
|
620
|
-
} & {
|
|
621
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
622
|
-
entryId: string;
|
|
623
|
-
} & import("../common-types").QueryParams;
|
|
624
|
-
}): Promise<import("./entry").EntryProps<any>>;
|
|
625
|
-
(opts: {
|
|
626
|
-
entityType: "Entry";
|
|
627
|
-
action: "patch";
|
|
628
|
-
} & {
|
|
629
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
630
|
-
entryId: string;
|
|
631
|
-
version: number;
|
|
632
|
-
};
|
|
633
|
-
} & {
|
|
634
|
-
payload: import("json-patch").OpPatch[];
|
|
635
|
-
} & {
|
|
636
|
-
headers?: Record<string, unknown> | undefined;
|
|
637
|
-
}): Promise<import("./entry").EntryProps<any>>;
|
|
638
|
-
(opts: {
|
|
639
|
-
entityType: "Entry";
|
|
640
|
-
action: "update";
|
|
641
|
-
} & {
|
|
642
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
643
|
-
entryId: string;
|
|
644
|
-
};
|
|
645
|
-
} & {
|
|
646
|
-
payload: import("./entry").EntryProps<any>;
|
|
647
|
-
} & {
|
|
648
|
-
headers?: Record<string, unknown> | undefined;
|
|
649
|
-
}): Promise<import("./entry").EntryProps<any>>;
|
|
650
|
-
(opts: {
|
|
651
|
-
entityType: "Entry";
|
|
652
|
-
action: "delete";
|
|
653
|
-
} & {
|
|
654
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
655
|
-
entryId: string;
|
|
656
|
-
};
|
|
657
|
-
}): Promise<any>;
|
|
658
|
-
(opts: {
|
|
659
|
-
entityType: "Entry";
|
|
660
|
-
action: "publish";
|
|
661
|
-
} & {
|
|
662
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
663
|
-
entryId: string;
|
|
664
|
-
};
|
|
665
|
-
} & {
|
|
666
|
-
payload: import("./entry").EntryProps<any>;
|
|
667
|
-
}): Promise<import("./entry").EntryProps<any>>;
|
|
668
|
-
(opts: {
|
|
669
|
-
entityType: "Entry";
|
|
670
|
-
action: "unpublish";
|
|
671
|
-
} & {
|
|
672
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
673
|
-
entryId: string;
|
|
674
|
-
};
|
|
675
|
-
}): Promise<import("./entry").EntryProps<any>>;
|
|
676
|
-
(opts: {
|
|
677
|
-
entityType: "Entry";
|
|
678
|
-
action: "archive";
|
|
679
|
-
} & {
|
|
680
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
681
|
-
entryId: string;
|
|
682
|
-
};
|
|
683
|
-
}): Promise<import("./entry").EntryProps<any>>;
|
|
684
|
-
(opts: {
|
|
685
|
-
entityType: "Entry";
|
|
686
|
-
action: "unarchive";
|
|
687
|
-
} & {
|
|
688
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
689
|
-
entryId: string;
|
|
690
|
-
};
|
|
691
|
-
}): Promise<import("./entry").EntryProps<any>>;
|
|
692
|
-
(opts: {
|
|
693
|
-
entityType: "Entry";
|
|
694
|
-
action: "create";
|
|
695
|
-
} & {
|
|
696
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
697
|
-
contentTypeId: string;
|
|
698
|
-
};
|
|
699
|
-
} & {
|
|
700
|
-
payload: Pick<import("./entry").EntryProps<any>, "metadata" | "fields">;
|
|
701
|
-
}): Promise<import("./entry").EntryProps<any>>;
|
|
702
|
-
(opts: {
|
|
703
|
-
entityType: "Entry";
|
|
704
|
-
action: "createWithId";
|
|
705
|
-
} & {
|
|
706
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
707
|
-
entryId: string;
|
|
708
|
-
contentTypeId: string;
|
|
709
|
-
};
|
|
710
|
-
} & {
|
|
711
|
-
payload: Pick<import("./entry").EntryProps<any>, "metadata" | "fields">;
|
|
712
|
-
}): Promise<import("./entry").EntryProps<any>>;
|
|
713
|
-
(opts: {
|
|
714
|
-
entityType: "Entry";
|
|
715
|
-
action: "references";
|
|
716
|
-
} & {
|
|
717
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
718
|
-
entryId: string;
|
|
719
|
-
maxDepth?: number | undefined;
|
|
720
|
-
};
|
|
721
|
-
}): Promise<import("./entry").EntryReferenceProps>;
|
|
722
|
-
(opts: {
|
|
723
|
-
entityType: "Extension";
|
|
724
|
-
action: "get";
|
|
725
|
-
} & {
|
|
726
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
727
|
-
extensionId: string;
|
|
728
|
-
} & import("../common-types").QueryParams;
|
|
729
|
-
}): Promise<import("./extension").ExtensionProps>;
|
|
730
|
-
(opts: {
|
|
731
|
-
entityType: "Extension";
|
|
732
|
-
action: "getMany";
|
|
733
|
-
} & {
|
|
734
|
-
params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
|
|
735
|
-
}): Promise<import("../common-types").CollectionProp<import("./extension").ExtensionProps>>;
|
|
736
|
-
(opts: {
|
|
737
|
-
entityType: "Extension";
|
|
738
|
-
action: "create";
|
|
739
|
-
} & {
|
|
740
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
741
|
-
} & {
|
|
742
|
-
payload: import("./extension").CreateExtensionProps;
|
|
743
|
-
} & {
|
|
744
|
-
headers?: Record<string, unknown> | undefined;
|
|
745
|
-
}): Promise<import("./extension").ExtensionProps>;
|
|
746
|
-
(opts: {
|
|
747
|
-
entityType: "Extension";
|
|
748
|
-
action: "createWithId";
|
|
749
|
-
} & {
|
|
750
|
-
params: import("../common-types").GetExtensionParams;
|
|
751
|
-
} & {
|
|
752
|
-
payload: import("./extension").CreateExtensionProps;
|
|
753
|
-
} & {
|
|
754
|
-
headers?: Record<string, unknown> | undefined;
|
|
755
|
-
}): Promise<import("./extension").ExtensionProps>;
|
|
756
|
-
(opts: {
|
|
757
|
-
entityType: "Extension";
|
|
758
|
-
action: "update";
|
|
759
|
-
} & {
|
|
760
|
-
params: import("../common-types").GetExtensionParams;
|
|
761
|
-
} & {
|
|
762
|
-
payload: import("./extension").ExtensionProps;
|
|
763
|
-
} & {
|
|
764
|
-
headers?: Record<string, unknown> | undefined;
|
|
765
|
-
}): Promise<import("./extension").ExtensionProps>;
|
|
766
|
-
(opts: {
|
|
767
|
-
entityType: "Extension";
|
|
768
|
-
action: "delete";
|
|
769
|
-
} & {
|
|
770
|
-
params: import("../common-types").GetExtensionParams;
|
|
771
|
-
}): Promise<any>;
|
|
772
|
-
(opts: {
|
|
773
|
-
entityType: "Locale";
|
|
774
|
-
action: "get";
|
|
775
|
-
} & {
|
|
776
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
777
|
-
localeId: string;
|
|
778
|
-
};
|
|
779
|
-
}): Promise<import("./locale").LocaleProps>;
|
|
780
|
-
(opts: {
|
|
781
|
-
entityType: "Locale";
|
|
782
|
-
action: "getMany";
|
|
783
|
-
} & {
|
|
784
|
-
params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
|
|
785
|
-
}): Promise<import("../common-types").CollectionProp<import("./locale").LocaleProps>>;
|
|
786
|
-
(opts: {
|
|
787
|
-
entityType: "Locale";
|
|
788
|
-
action: "delete";
|
|
789
|
-
} & {
|
|
790
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
791
|
-
localeId: string;
|
|
792
|
-
};
|
|
793
|
-
}): Promise<any>;
|
|
794
|
-
(opts: {
|
|
795
|
-
entityType: "Locale";
|
|
796
|
-
action: "update";
|
|
797
|
-
} & {
|
|
798
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
799
|
-
localeId: string;
|
|
800
|
-
};
|
|
801
|
-
} & {
|
|
802
|
-
payload: import("./locale").LocaleProps;
|
|
803
|
-
} & {
|
|
804
|
-
headers?: Record<string, unknown> | undefined;
|
|
805
|
-
}): Promise<import("./locale").LocaleProps>;
|
|
806
|
-
(opts: {
|
|
807
|
-
entityType: "Locale";
|
|
808
|
-
action: "create";
|
|
809
|
-
} & {
|
|
810
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
811
|
-
} & {
|
|
812
|
-
payload: Pick<import("type-fest/source/simplify").Simplify<Pick<Pick<import("./locale").LocaleProps, "optional" | "default" | "code" | "name" | "internal_code" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">, "code" | "name" | "internal_code" | "fallbackCode"> & Partial<Pick<Pick<import("./locale").LocaleProps, "optional" | "default" | "code" | "name" | "internal_code" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">, "optional" | "default" | "contentDeliveryApi" | "contentManagementApi">>>, "optional" | "default" | "code" | "name" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">;
|
|
813
|
-
} & {
|
|
814
|
-
headers?: Record<string, unknown> | undefined;
|
|
815
|
-
}): Promise<import("./locale").LocaleProps>;
|
|
816
|
-
(opts: {
|
|
817
|
-
entityType: "Organization";
|
|
818
|
-
action: "getMany";
|
|
819
|
-
}): Promise<import("../common-types").CollectionProp<import("./organization").OrganizationProp>>;
|
|
820
|
-
(opts: {
|
|
821
|
-
entityType: "Organization";
|
|
822
|
-
action: "get";
|
|
823
|
-
} & {
|
|
824
|
-
params: import("../common-types").GetOrganizationParams;
|
|
825
|
-
}): Promise<import("./organization").OrganizationProp>;
|
|
826
|
-
(opts: {
|
|
827
|
-
entityType: "OrganizationInvitation";
|
|
828
|
-
action: "get";
|
|
829
|
-
} & {
|
|
830
|
-
params: {
|
|
831
|
-
organizationId: string;
|
|
832
|
-
invitationId: string;
|
|
833
|
-
};
|
|
834
|
-
} & {
|
|
835
|
-
headers?: Record<string, unknown> | undefined;
|
|
836
|
-
}): Promise<import("./organization-invitation").OrganizationInvitationProps>;
|
|
837
|
-
(opts: {
|
|
838
|
-
entityType: "OrganizationInvitation";
|
|
839
|
-
action: "create";
|
|
840
|
-
} & {
|
|
841
|
-
params: {
|
|
842
|
-
organizationId: string;
|
|
843
|
-
};
|
|
844
|
-
} & {
|
|
845
|
-
payload: Pick<import("./organization-invitation").OrganizationInvitationProps, "firstName" | "lastName" | "email" | "role">;
|
|
846
|
-
} & {
|
|
847
|
-
headers?: Record<string, unknown> | undefined;
|
|
848
|
-
}): Promise<import("./organization-invitation").OrganizationInvitationProps>;
|
|
849
|
-
(opts: {
|
|
850
|
-
entityType: "OrganizationMembership";
|
|
851
|
-
action: "get";
|
|
852
|
-
} & {
|
|
853
|
-
params: import("../common-types").GetOrganizationMembershipProps;
|
|
854
|
-
}): Promise<import("./organization-membership").OrganizationMembershipProps>;
|
|
855
|
-
(opts: {
|
|
856
|
-
entityType: "OrganizationMembership";
|
|
857
|
-
action: "getMany";
|
|
858
|
-
} & {
|
|
859
|
-
params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
|
|
860
|
-
}): Promise<import("../common-types").CollectionProp<import("./organization-membership").OrganizationMembershipProps>>;
|
|
861
|
-
(opts: {
|
|
862
|
-
entityType: "OrganizationMembership";
|
|
863
|
-
action: "update";
|
|
864
|
-
} & {
|
|
865
|
-
params: import("../common-types").GetOrganizationMembershipProps;
|
|
866
|
-
} & {
|
|
867
|
-
payload: import("./organization-membership").OrganizationMembershipProps;
|
|
868
|
-
} & {
|
|
869
|
-
headers?: Record<string, unknown> | undefined;
|
|
870
|
-
}): Promise<import("./organization-membership").OrganizationMembershipProps>;
|
|
871
|
-
(opts: {
|
|
872
|
-
entityType: "OrganizationMembership";
|
|
873
|
-
action: "delete";
|
|
874
|
-
} & {
|
|
875
|
-
params: import("../common-types").GetOrganizationMembershipProps;
|
|
876
|
-
}): Promise<any>;
|
|
877
|
-
(opts: {
|
|
878
|
-
entityType: "PersonalAccessToken";
|
|
879
|
-
action: "get";
|
|
880
|
-
} & {
|
|
881
|
-
params: {
|
|
882
|
-
tokenId: string;
|
|
883
|
-
};
|
|
884
|
-
}): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
|
|
885
|
-
(opts: {
|
|
886
|
-
entityType: "PersonalAccessToken";
|
|
887
|
-
action: "getMany";
|
|
888
|
-
} & {
|
|
889
|
-
params: import("../common-types").QueryParams;
|
|
890
|
-
}): Promise<import("../common-types").CollectionProp<import("./personal-access-token").PersonalAccessTokenProp>>;
|
|
891
|
-
(opts: {
|
|
892
|
-
entityType: "PersonalAccessToken";
|
|
893
|
-
action: "create";
|
|
894
|
-
} & {
|
|
895
|
-
params: {};
|
|
896
|
-
} & {
|
|
897
|
-
payload: Pick<import("./personal-access-token").PersonalAccessToken, "name" | "scopes">;
|
|
898
|
-
} & {
|
|
899
|
-
headers?: Record<string, unknown> | undefined;
|
|
900
|
-
}): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
|
|
901
|
-
(opts: {
|
|
902
|
-
entityType: "PersonalAccessToken";
|
|
903
|
-
action: "revoke";
|
|
904
|
-
} & {
|
|
905
|
-
params: {
|
|
906
|
-
tokenId: string;
|
|
907
|
-
};
|
|
908
|
-
}): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
|
|
909
|
-
(opts: {
|
|
910
|
-
entityType: "PreviewApiKey";
|
|
911
|
-
action: "get";
|
|
912
|
-
} & {
|
|
913
|
-
params: import("../common-types").GetSpaceParams & {
|
|
914
|
-
previewApiKeyId: string;
|
|
915
|
-
};
|
|
916
|
-
}): Promise<import("./preview-api-key").PreviewApiKeyProps>;
|
|
917
|
-
(opts: {
|
|
918
|
-
entityType: "PreviewApiKey";
|
|
919
|
-
action: "getMany";
|
|
920
|
-
} & {
|
|
921
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
|
|
922
|
-
}): Promise<import("../common-types").CollectionProp<import("./preview-api-key").PreviewApiKeyProps>>;
|
|
923
|
-
(opts: {
|
|
924
|
-
entityType: "Release";
|
|
925
|
-
action: "get";
|
|
926
|
-
} & {
|
|
927
|
-
params: import("../common-types").GetReleaseParams;
|
|
928
|
-
}): Promise<import("./release").ReleaseProps>;
|
|
929
|
-
(opts: {
|
|
930
|
-
entityType: "Release";
|
|
931
|
-
action: "query";
|
|
932
|
-
} & {
|
|
933
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
934
|
-
query?: import("./release").ReleaseQueryOptions | undefined;
|
|
935
|
-
};
|
|
936
|
-
}): Promise<import("../common-types").CollectionProp<import("./release").ReleaseProps>>;
|
|
937
|
-
(opts: {
|
|
938
|
-
entityType: "Release";
|
|
939
|
-
action: "create";
|
|
940
|
-
} & {
|
|
941
|
-
params: import("../common-types").GetSpaceEnvironmentParams;
|
|
942
|
-
} & {
|
|
943
|
-
payload: import("./release").ReleasePayload;
|
|
944
|
-
}): Promise<import("./release").ReleaseProps>;
|
|
945
|
-
(opts: {
|
|
946
|
-
entityType: "Release";
|
|
947
|
-
action: "update";
|
|
948
|
-
} & {
|
|
949
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
950
|
-
releaseId: string;
|
|
951
|
-
} & {
|
|
952
|
-
version: number;
|
|
953
|
-
};
|
|
954
|
-
} & {
|
|
955
|
-
payload: import("./release").ReleasePayload;
|
|
956
|
-
}): Promise<import("./release").ReleaseProps>;
|
|
957
|
-
(opts: {
|
|
958
|
-
entityType: "Release";
|
|
959
|
-
action: "delete";
|
|
960
|
-
} & {
|
|
961
|
-
params: import("../common-types").GetReleaseParams;
|
|
962
|
-
}): Promise<void>;
|
|
963
|
-
(opts: {
|
|
964
|
-
entityType: "Release";
|
|
965
|
-
action: "publish";
|
|
966
|
-
} & {
|
|
967
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
968
|
-
releaseId: string;
|
|
969
|
-
} & {
|
|
970
|
-
version: number;
|
|
971
|
-
};
|
|
972
|
-
}): Promise<import("./release-action").ReleaseActionProps<"publish">>;
|
|
973
|
-
(opts: {
|
|
974
|
-
entityType: "Release";
|
|
975
|
-
action: "unpublish";
|
|
976
|
-
} & {
|
|
977
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
978
|
-
releaseId: string;
|
|
979
|
-
} & {
|
|
980
|
-
version: number;
|
|
981
|
-
};
|
|
982
|
-
}): Promise<import("./release-action").ReleaseActionProps<"unpublish">>;
|
|
983
|
-
(opts: {
|
|
984
|
-
entityType: "Release";
|
|
985
|
-
action: "validate";
|
|
986
|
-
} & {
|
|
987
|
-
params: import("../common-types").GetReleaseParams;
|
|
988
|
-
} & {
|
|
989
|
-
payload?: import("./release").ReleaseValidatePayload | undefined;
|
|
990
|
-
}): Promise<import("./release-action").ReleaseActionProps<"validate">>;
|
|
991
|
-
(opts: {
|
|
992
|
-
entityType: "ReleaseAction";
|
|
993
|
-
action: "get";
|
|
994
|
-
} & {
|
|
995
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
996
|
-
releaseId: string;
|
|
997
|
-
} & {
|
|
998
|
-
actionId: string;
|
|
999
|
-
};
|
|
1000
|
-
}): Promise<import("./release-action").ReleaseAction<any>>;
|
|
1001
|
-
(opts: {
|
|
1002
|
-
entityType: "ReleaseAction";
|
|
1003
|
-
action: "queryForRelease";
|
|
1004
|
-
} & {
|
|
1005
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
1006
|
-
releaseId: string;
|
|
1007
|
-
} & {
|
|
1008
|
-
query?: import("./release-action").ReleaseActionQueryOptions | undefined;
|
|
1009
|
-
};
|
|
1010
|
-
}): Promise<import("../common-types").Collection<import("./release-action").ReleaseAction<any>, import("./release-action").ReleaseActionProps<any>>>;
|
|
1011
|
-
(opts: {
|
|
1012
|
-
entityType: "Role";
|
|
1013
|
-
action: "get";
|
|
1014
|
-
} & {
|
|
1015
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1016
|
-
roleId: string;
|
|
1017
|
-
};
|
|
1018
|
-
}): Promise<import("./role").RoleProps>;
|
|
1019
|
-
(opts: {
|
|
1020
|
-
entityType: "Role";
|
|
1021
|
-
action: "getMany";
|
|
1022
|
-
} & {
|
|
1023
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
|
|
1024
|
-
}): Promise<import("../common-types").CollectionProp<import("./role").RoleProps>>;
|
|
1025
|
-
(opts: {
|
|
1026
|
-
entityType: "Role";
|
|
1027
|
-
action: "create";
|
|
1028
|
-
} & {
|
|
1029
|
-
params: import("../common-types").GetSpaceParams;
|
|
1030
|
-
} & {
|
|
1031
|
-
payload: Pick<import("./role").RoleProps, "description" | "name" | "permissions" | "policies">;
|
|
1032
|
-
} & {
|
|
1033
|
-
headers?: Record<string, unknown> | undefined;
|
|
1034
|
-
}): Promise<import("./role").RoleProps>;
|
|
1035
|
-
(opts: {
|
|
1036
|
-
entityType: "Role";
|
|
1037
|
-
action: "createWithId";
|
|
1038
|
-
} & {
|
|
1039
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1040
|
-
roleId: string;
|
|
1041
|
-
};
|
|
1042
|
-
} & {
|
|
1043
|
-
payload: Pick<import("./role").RoleProps, "description" | "name" | "permissions" | "policies">;
|
|
1044
|
-
} & {
|
|
1045
|
-
headers?: Record<string, unknown> | undefined;
|
|
1046
|
-
}): Promise<import("./role").RoleProps>;
|
|
1047
|
-
(opts: {
|
|
1048
|
-
entityType: "Role";
|
|
1049
|
-
action: "update";
|
|
1050
|
-
} & {
|
|
1051
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1052
|
-
roleId: string;
|
|
1053
|
-
};
|
|
1054
|
-
} & {
|
|
1055
|
-
payload: import("./role").RoleProps;
|
|
1056
|
-
} & {
|
|
1057
|
-
headers?: Record<string, unknown> | undefined;
|
|
1058
|
-
}): Promise<import("./role").RoleProps>;
|
|
1059
|
-
(opts: {
|
|
1060
|
-
entityType: "Role";
|
|
1061
|
-
action: "delete";
|
|
1062
|
-
} & {
|
|
1063
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1064
|
-
roleId: string;
|
|
1065
|
-
};
|
|
1066
|
-
}): Promise<any>;
|
|
1067
|
-
(opts: {
|
|
1068
|
-
entityType: "ScheduledAction";
|
|
1069
|
-
action: "get";
|
|
1070
|
-
} & {
|
|
1071
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1072
|
-
scheduledActionId: string;
|
|
1073
|
-
environmentId: string;
|
|
1074
|
-
};
|
|
1075
|
-
}): Promise<import("./scheduled-action").ScheduledActionProps>;
|
|
1076
|
-
(opts: {
|
|
1077
|
-
entityType: "ScheduledAction";
|
|
1078
|
-
action: "getMany";
|
|
1079
|
-
} & {
|
|
1080
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
|
|
1081
|
-
}): Promise<import("../common-types").CollectionProp<import("./scheduled-action").ScheduledActionProps>>;
|
|
1082
|
-
(opts: {
|
|
1083
|
-
entityType: "ScheduledAction";
|
|
1084
|
-
action: "create";
|
|
1085
|
-
} & {
|
|
1086
|
-
params: import("../common-types").GetSpaceParams;
|
|
1087
|
-
} & {
|
|
1088
|
-
payload: Pick<import("./scheduled-action").ScheduledActionProps, "environment" | "error" | "action" | "entity" | "scheduledFor">;
|
|
1089
|
-
}): Promise<import("./scheduled-action").ScheduledActionProps>;
|
|
1090
|
-
(opts: {
|
|
1091
|
-
entityType: "ScheduledAction";
|
|
1092
|
-
action: "update";
|
|
1093
|
-
} & {
|
|
1094
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1095
|
-
scheduledActionId: string;
|
|
1096
|
-
version: number;
|
|
1097
|
-
};
|
|
1098
|
-
} & {
|
|
1099
|
-
payload: Pick<import("./scheduled-action").ScheduledActionProps, "environment" | "error" | "action" | "entity" | "scheduledFor">;
|
|
1100
|
-
}): Promise<import("./scheduled-action").ScheduledActionProps>;
|
|
1101
|
-
(opts: {
|
|
1102
|
-
entityType: "ScheduledAction";
|
|
1103
|
-
action: "delete";
|
|
1104
|
-
} & {
|
|
1105
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
1106
|
-
scheduledActionId: string;
|
|
1107
|
-
};
|
|
1108
|
-
}): Promise<any>;
|
|
1109
|
-
(opts: {
|
|
1110
|
-
entityType: "Snapshot";
|
|
1111
|
-
action: "getManyForEntry";
|
|
1112
|
-
} & {
|
|
1113
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
1114
|
-
entryId: string;
|
|
1115
|
-
} & import("../common-types").QueryParams;
|
|
1116
|
-
}): Promise<import("../common-types").CollectionProp<import("./snapshot").SnapshotProps<import("./entry").EntryProps<any>>>>;
|
|
1117
|
-
(opts: {
|
|
1118
|
-
entityType: "Snapshot";
|
|
1119
|
-
action: "getForEntry";
|
|
1120
|
-
} & {
|
|
1121
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
1122
|
-
entryId: string;
|
|
1123
|
-
} & {
|
|
1124
|
-
snapshotId: string;
|
|
1125
|
-
};
|
|
1126
|
-
}): Promise<import("./snapshot").SnapshotProps<import("./entry").EntryProps<any>>>;
|
|
1127
|
-
(opts: {
|
|
1128
|
-
entityType: "Snapshot";
|
|
1129
|
-
action: "getManyForContentType";
|
|
1130
|
-
} & {
|
|
1131
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
1132
|
-
contentTypeId: string;
|
|
1133
|
-
} & import("../common-types").QueryParams;
|
|
1134
|
-
}): Promise<import("../common-types").CollectionProp<import("./snapshot").SnapshotProps<import("./content-type").ContentTypeProps>>>;
|
|
1135
|
-
(opts: {
|
|
1136
|
-
entityType: "Snapshot";
|
|
1137
|
-
action: "getForContentType";
|
|
1138
|
-
} & {
|
|
1139
|
-
params: import("../common-types").GetSpaceEnvironmentParams & {
|
|
1140
|
-
contentTypeId: string;
|
|
1141
|
-
} & {
|
|
1142
|
-
snapshotId: string;
|
|
1143
|
-
};
|
|
1144
|
-
}): Promise<import("./snapshot").SnapshotProps<import("./content-type").ContentTypeProps>>;
|
|
1145
|
-
(opts: {
|
|
1146
|
-
entityType: "Space";
|
|
1147
|
-
action: "get";
|
|
1148
|
-
} & {
|
|
1149
|
-
params: import("../common-types").GetSpaceParams;
|
|
1150
|
-
}): Promise<import("./space").SpaceProps>;
|
|
1151
|
-
(opts: {
|
|
1152
|
-
entityType: "Space";
|
|
1153
|
-
action: "getMany";
|
|
1154
|
-
} & {
|
|
1155
|
-
params: import("../common-types").QueryParams;
|
|
1156
|
-
}): Promise<import("../common-types").CollectionProp<import("./space").SpaceProps>>;
|
|
1157
|
-
(opts: {
|
|
1158
|
-
entityType: "Space";
|
|
1159
|
-
action: "create";
|
|
1160
|
-
} & {
|
|
1161
|
-
params: {
|
|
1162
|
-
organizationId?: string | undefined;
|
|
1163
|
-
};
|
|
1164
|
-
} & {
|
|
1165
|
-
payload: Pick<import("./space").SpaceProps, "name">;
|
|
1166
|
-
} & {
|
|
1167
|
-
headers?: Record<string, unknown> | undefined;
|
|
1168
|
-
}): Promise<any>;
|
|
1169
|
-
(opts: {
|
|
1170
|
-
entityType: "Space";
|
|
1171
|
-
action: "update";
|
|
1172
|
-
} & {
|
|
1173
|
-
params: import("../common-types").GetSpaceParams;
|
|
1174
|
-
} & {
|
|
1175
|
-
payload: import("./space").SpaceProps;
|
|
1176
|
-
} & {
|
|
1177
|
-
headers?: Record<string, unknown> | undefined;
|
|
1178
|
-
}): Promise<import("./space").SpaceProps>;
|
|
1179
|
-
(opts: {
|
|
1180
|
-
entityType: "Space";
|
|
1181
|
-
action: "delete";
|
|
1182
|
-
} & {
|
|
1183
|
-
params: import("../common-types").GetSpaceParams;
|
|
1184
|
-
}): Promise<void>;
|
|
1185
|
-
(opts: {
|
|
1186
|
-
entityType: "SpaceMember";
|
|
1187
|
-
action: "get";
|
|
1188
|
-
} & {
|
|
1189
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1190
|
-
spaceMemberId: string;
|
|
1191
|
-
};
|
|
1192
|
-
}): Promise<import("./space-member").SpaceMemberProps>;
|
|
1193
|
-
(opts: {
|
|
1194
|
-
entityType: "SpaceMember";
|
|
1195
|
-
action: "getMany";
|
|
1196
|
-
} & {
|
|
1197
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
|
|
1198
|
-
}): Promise<import("../common-types").CollectionProp<import("./space-member").SpaceMemberProps>>;
|
|
1199
|
-
(opts: {
|
|
1200
|
-
entityType: "SpaceMembership";
|
|
1201
|
-
action: "get";
|
|
1202
|
-
} & {
|
|
1203
|
-
params: import("../common-types").GetSpaceMembershipProps;
|
|
1204
|
-
}): Promise<import("./space-membership").SpaceMembershipProps>;
|
|
1205
|
-
(opts: {
|
|
1206
|
-
entityType: "SpaceMembership";
|
|
1207
|
-
action: "getMany";
|
|
1208
|
-
} & {
|
|
1209
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
|
|
1210
|
-
}): Promise<import("../common-types").CollectionProp<import("./space-membership").SpaceMembershipProps>>;
|
|
1211
|
-
(opts: {
|
|
1212
|
-
entityType: "SpaceMembership";
|
|
1213
|
-
action: "getForOrganization";
|
|
1214
|
-
} & {
|
|
1215
|
-
params: import("../common-types").GetOrganizationParams & {
|
|
1216
|
-
spaceMembershipId: string;
|
|
1217
|
-
};
|
|
1218
|
-
}): Promise<import("./space-membership").SpaceMembershipProps>;
|
|
1219
|
-
(opts: {
|
|
1220
|
-
entityType: "SpaceMembership";
|
|
1221
|
-
action: "getManyForOrganization";
|
|
1222
|
-
} & {
|
|
1223
|
-
params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
|
|
1224
|
-
}): Promise<import("../common-types").CollectionProp<import("./space-membership").SpaceMembershipProps>>;
|
|
1225
|
-
(opts: {
|
|
1226
|
-
entityType: "SpaceMembership";
|
|
1227
|
-
action: "create";
|
|
1228
|
-
} & {
|
|
1229
|
-
params: import("../common-types").GetSpaceParams;
|
|
1230
|
-
} & {
|
|
1231
|
-
payload: import("./space-membership").CreateSpaceMembershipProps;
|
|
1232
|
-
} & {
|
|
1233
|
-
headers?: Record<string, unknown> | undefined;
|
|
1234
|
-
}): Promise<import("./space-membership").SpaceMembershipProps>;
|
|
1235
|
-
(opts: {
|
|
1236
|
-
entityType: "SpaceMembership";
|
|
1237
|
-
action: "createWithId";
|
|
1238
|
-
} & {
|
|
1239
|
-
params: import("../common-types").GetSpaceMembershipProps;
|
|
1240
|
-
} & {
|
|
1241
|
-
payload: import("./space-membership").CreateSpaceMembershipProps;
|
|
1242
|
-
} & {
|
|
1243
|
-
headers?: Record<string, unknown> | undefined;
|
|
1244
|
-
}): Promise<import("./space-membership").SpaceMembershipProps>;
|
|
1245
|
-
(opts: {
|
|
1246
|
-
entityType: "SpaceMembership";
|
|
1247
|
-
action: "update";
|
|
1248
|
-
} & {
|
|
1249
|
-
params: import("../common-types").GetSpaceMembershipProps;
|
|
1250
|
-
} & {
|
|
1251
|
-
payload: import("./space-membership").SpaceMembershipProps;
|
|
1252
|
-
} & {
|
|
1253
|
-
headers?: Record<string, unknown> | undefined;
|
|
1254
|
-
}): Promise<import("./space-membership").SpaceMembershipProps>;
|
|
1255
|
-
(opts: {
|
|
1256
|
-
entityType: "SpaceMembership";
|
|
1257
|
-
action: "delete";
|
|
1258
|
-
} & {
|
|
1259
|
-
params: import("../common-types").GetSpaceMembershipProps;
|
|
1260
|
-
}): Promise<any>;
|
|
1261
|
-
(opts: {
|
|
1262
|
-
entityType: "Tag";
|
|
1263
|
-
action: "get";
|
|
1264
|
-
} & {
|
|
1265
|
-
params: import("../common-types").GetTagParams;
|
|
1266
|
-
}): Promise<import("./tag").TagProps>;
|
|
1267
|
-
(opts: {
|
|
1268
|
-
entityType: "Tag";
|
|
1269
|
-
action: "getMany";
|
|
1270
|
-
} & {
|
|
1271
|
-
params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
|
|
1272
|
-
}): Promise<import("../common-types").CollectionProp<import("./tag").TagProps>>;
|
|
1273
|
-
(opts: {
|
|
1274
|
-
entityType: "Tag";
|
|
1275
|
-
action: "createWithId";
|
|
1276
|
-
} & {
|
|
1277
|
-
params: import("../common-types").GetTagParams;
|
|
1278
|
-
} & {
|
|
1279
|
-
payload: import("./tag").CreateTagProps;
|
|
1280
|
-
}): Promise<import("./tag").TagProps>;
|
|
1281
|
-
(opts: {
|
|
1282
|
-
entityType: "Tag";
|
|
1283
|
-
action: "update";
|
|
1284
|
-
} & {
|
|
1285
|
-
params: import("../common-types").GetTagParams;
|
|
1286
|
-
} & {
|
|
1287
|
-
payload: import("./tag").UpdateTagProps;
|
|
1288
|
-
} & {
|
|
1289
|
-
headers?: Record<string, unknown> | undefined;
|
|
1290
|
-
}): Promise<import("./tag").TagProps>;
|
|
1291
|
-
(opts: {
|
|
1292
|
-
entityType: "Tag";
|
|
1293
|
-
action: "delete";
|
|
1294
|
-
} & {
|
|
1295
|
-
params: import("./tag").DeleteTagParams;
|
|
1296
|
-
}): Promise<any>;
|
|
1297
|
-
(opts: {
|
|
1298
|
-
entityType: "Task";
|
|
1299
|
-
action: "get";
|
|
1300
|
-
} & {
|
|
1301
|
-
params: GetTaskParams;
|
|
1302
|
-
}): Promise<TaskProps>;
|
|
1303
|
-
(opts: {
|
|
1304
|
-
entityType: "Task";
|
|
1305
|
-
action: "getAll";
|
|
1306
|
-
} & {
|
|
1307
|
-
params: GetEntryParams;
|
|
1308
|
-
}): Promise<import("../common-types").CollectionProp<TaskProps>>;
|
|
1309
|
-
(opts: {
|
|
1310
|
-
entityType: "Task";
|
|
1311
|
-
action: "create";
|
|
1312
|
-
} & {
|
|
1313
|
-
params: GetEntryParams;
|
|
1314
|
-
} & {
|
|
1315
|
-
payload: Pick<TaskProps, "body" | "assignedTo" | "status" | "dueDate">;
|
|
1316
|
-
}): Promise<TaskProps>;
|
|
1317
|
-
(opts: {
|
|
1318
|
-
entityType: "Task";
|
|
1319
|
-
action: "update";
|
|
1320
|
-
} & {
|
|
1321
|
-
params: GetTaskParams;
|
|
1322
|
-
} & {
|
|
1323
|
-
payload: UpdateTaskProps;
|
|
1324
|
-
} & {
|
|
1325
|
-
headers?: Record<string, unknown> | undefined;
|
|
1326
|
-
}): Promise<TaskProps>;
|
|
1327
|
-
(opts: {
|
|
1328
|
-
entityType: "Task";
|
|
1329
|
-
action: "delete";
|
|
1330
|
-
} & {
|
|
1331
|
-
params: DeleteTaskParams;
|
|
1332
|
-
}): Promise<void>;
|
|
1333
|
-
(opts: {
|
|
1334
|
-
entityType: "Team";
|
|
1335
|
-
action: "get";
|
|
1336
|
-
} & {
|
|
1337
|
-
params: import("../common-types").GetTeamParams;
|
|
1338
|
-
}): Promise<import("./team").TeamProps>;
|
|
1339
|
-
(opts: {
|
|
1340
|
-
entityType: "Team";
|
|
1341
|
-
action: "getMany";
|
|
1342
|
-
} & {
|
|
1343
|
-
params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
|
|
1344
|
-
}): Promise<import("../common-types").CollectionProp<import("./team").TeamProps>>;
|
|
1345
|
-
(opts: {
|
|
1346
|
-
entityType: "Team";
|
|
1347
|
-
action: "getManyForSpace";
|
|
1348
|
-
} & {
|
|
1349
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
|
|
1350
|
-
}): Promise<import("../common-types").CollectionProp<import("./team").TeamProps>>;
|
|
1351
|
-
(opts: {
|
|
1352
|
-
entityType: "Team";
|
|
1353
|
-
action: "create";
|
|
1354
|
-
} & {
|
|
1355
|
-
params: import("../common-types").GetOrganizationParams;
|
|
1356
|
-
} & {
|
|
1357
|
-
payload: Pick<import("./team").TeamProps, "description" | "name">;
|
|
1358
|
-
} & {
|
|
1359
|
-
headers?: Record<string, unknown> | undefined;
|
|
1360
|
-
}): Promise<any>;
|
|
1361
|
-
(opts: {
|
|
1362
|
-
entityType: "Team";
|
|
1363
|
-
action: "update";
|
|
1364
|
-
} & {
|
|
1365
|
-
params: import("../common-types").GetTeamParams;
|
|
1366
|
-
} & {
|
|
1367
|
-
payload: import("./team").TeamProps;
|
|
1368
|
-
} & {
|
|
1369
|
-
headers?: Record<string, unknown> | undefined;
|
|
1370
|
-
}): Promise<import("./team").TeamProps>;
|
|
1371
|
-
(opts: {
|
|
1372
|
-
entityType: "Team";
|
|
1373
|
-
action: "delete";
|
|
1374
|
-
} & {
|
|
1375
|
-
params: import("../common-types").GetTeamParams;
|
|
1376
|
-
}): Promise<any>;
|
|
1377
|
-
(opts: {
|
|
1378
|
-
entityType: "TeamMembership";
|
|
1379
|
-
action: "get";
|
|
1380
|
-
} & {
|
|
1381
|
-
params: import("../common-types").GetTeamMembershipParams;
|
|
1382
|
-
}): Promise<import("./team-membership").TeamMembershipProps>;
|
|
1383
|
-
(opts: {
|
|
1384
|
-
entityType: "TeamMembership";
|
|
1385
|
-
action: "getManyForOrganization";
|
|
1386
|
-
} & {
|
|
1387
|
-
params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
|
|
1388
|
-
}): Promise<import("../common-types").CollectionProp<import("./team-membership").TeamMembershipProps>>;
|
|
1389
|
-
(opts: {
|
|
1390
|
-
entityType: "TeamMembership";
|
|
1391
|
-
action: "getManyForTeam";
|
|
1392
|
-
} & {
|
|
1393
|
-
params: import("../common-types").GetTeamParams & import("../common-types").QueryParams;
|
|
1394
|
-
}): Promise<import("../common-types").CollectionProp<import("./team-membership").TeamMembershipProps>>;
|
|
1395
|
-
(opts: {
|
|
1396
|
-
entityType: "TeamMembership";
|
|
1397
|
-
action: "create";
|
|
1398
|
-
} & {
|
|
1399
|
-
params: import("../common-types").GetTeamParams;
|
|
1400
|
-
} & {
|
|
1401
|
-
payload: Pick<import("./team-membership").TeamMembershipProps, "admin" | "organizationMembershipId">;
|
|
1402
|
-
} & {
|
|
1403
|
-
headers?: Record<string, unknown> | undefined;
|
|
1404
|
-
}): Promise<import("./team-membership").TeamMembershipProps>;
|
|
1405
|
-
(opts: {
|
|
1406
|
-
entityType: "TeamMembership";
|
|
1407
|
-
action: "update";
|
|
1408
|
-
} & {
|
|
1409
|
-
params: import("../common-types").GetTeamMembershipParams;
|
|
1410
|
-
} & {
|
|
1411
|
-
payload: import("./team-membership").TeamMembershipProps;
|
|
1412
|
-
} & {
|
|
1413
|
-
headers?: Record<string, unknown> | undefined;
|
|
1414
|
-
}): Promise<import("./team-membership").TeamMembershipProps>;
|
|
1415
|
-
(opts: {
|
|
1416
|
-
entityType: "TeamMembership";
|
|
1417
|
-
action: "delete";
|
|
1418
|
-
} & {
|
|
1419
|
-
params: import("../common-types").GetTeamMembershipParams;
|
|
1420
|
-
}): Promise<any>;
|
|
1421
|
-
(opts: {
|
|
1422
|
-
entityType: "TeamSpaceMembership";
|
|
1423
|
-
action: "get";
|
|
1424
|
-
} & {
|
|
1425
|
-
params: import("../common-types").GetTeamSpaceMembershipParams;
|
|
1426
|
-
}): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
|
|
1427
|
-
(opts: {
|
|
1428
|
-
entityType: "TeamSpaceMembership";
|
|
1429
|
-
action: "getMany";
|
|
1430
|
-
} & {
|
|
1431
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
|
|
1432
|
-
}): Promise<import("../common-types").CollectionProp<import("./team-space-membership").TeamSpaceMembershipProps>>;
|
|
1433
|
-
(opts: {
|
|
1434
|
-
entityType: "TeamSpaceMembership";
|
|
1435
|
-
action: "getForOrganization";
|
|
1436
|
-
} & {
|
|
1437
|
-
params: import("../common-types").GetOrganizationParams & {
|
|
1438
|
-
teamSpaceMembershipId: string;
|
|
1439
|
-
};
|
|
1440
|
-
}): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
|
|
1441
|
-
(opts: {
|
|
1442
|
-
entityType: "TeamSpaceMembership";
|
|
1443
|
-
action: "getManyForOrganization";
|
|
1444
|
-
} & {
|
|
1445
|
-
params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams & {
|
|
1446
|
-
teamId?: string | undefined;
|
|
1447
|
-
};
|
|
1448
|
-
}): Promise<import("../common-types").CollectionProp<import("./team-space-membership").TeamSpaceMembershipProps>>;
|
|
1449
|
-
(opts: {
|
|
1450
|
-
entityType: "TeamSpaceMembership";
|
|
1451
|
-
action: "create";
|
|
1452
|
-
} & {
|
|
1453
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1454
|
-
teamId: string;
|
|
1455
|
-
};
|
|
1456
|
-
} & {
|
|
1457
|
-
payload: Pick<import("./team-space-membership").TeamSpaceMembershipProps, "admin" | "roles">;
|
|
1458
|
-
} & {
|
|
1459
|
-
headers?: Record<string, unknown> | undefined;
|
|
1460
|
-
}): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
|
|
1461
|
-
(opts: {
|
|
1462
|
-
entityType: "TeamSpaceMembership";
|
|
1463
|
-
action: "update";
|
|
1464
|
-
} & {
|
|
1465
|
-
params: import("../common-types").GetTeamSpaceMembershipParams;
|
|
1466
|
-
} & {
|
|
1467
|
-
payload: import("./team-space-membership").TeamSpaceMembershipProps;
|
|
1468
|
-
} & {
|
|
1469
|
-
headers?: Record<string, unknown> | undefined;
|
|
1470
|
-
}): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
|
|
1471
|
-
(opts: {
|
|
1472
|
-
entityType: "TeamSpaceMembership";
|
|
1473
|
-
action: "delete";
|
|
1474
|
-
} & {
|
|
1475
|
-
params: import("../common-types").GetTeamSpaceMembershipParams;
|
|
1476
|
-
}): Promise<any>;
|
|
1477
|
-
(opts: {
|
|
1478
|
-
entityType: "Upload";
|
|
1479
|
-
action: "get";
|
|
1480
|
-
} & {
|
|
1481
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1482
|
-
uploadId: string;
|
|
1483
|
-
};
|
|
1484
|
-
}): Promise<import("./entry").EntryProps<any>>;
|
|
1485
|
-
(opts: {
|
|
1486
|
-
entityType: "Upload";
|
|
1487
|
-
action: "create";
|
|
1488
|
-
} & {
|
|
1489
|
-
params: import("../common-types").GetSpaceParams;
|
|
1490
|
-
} & {
|
|
1491
|
-
payload: {
|
|
1492
|
-
file: string | ArrayBuffer | import("stream").Stream;
|
|
1493
|
-
};
|
|
1494
|
-
}): Promise<import("./entry").EntryProps<any>>;
|
|
1495
|
-
(opts: {
|
|
1496
|
-
entityType: "Upload";
|
|
1497
|
-
action: "delete";
|
|
1498
|
-
} & {
|
|
1499
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1500
|
-
uploadId: string;
|
|
1501
|
-
};
|
|
1502
|
-
}): Promise<any>;
|
|
1503
|
-
(opts: {
|
|
1504
|
-
entityType: "Usage";
|
|
1505
|
-
action: "getManyForSpace";
|
|
1506
|
-
} & {
|
|
1507
|
-
params: {
|
|
1508
|
-
organizationId: string;
|
|
1509
|
-
} & import("../common-types").QueryParams;
|
|
1510
|
-
}): Promise<import("../common-types").CollectionProp<import("./usage").UsageProps>>;
|
|
1511
|
-
(opts: {
|
|
1512
|
-
entityType: "Usage";
|
|
1513
|
-
action: "getManyForOrganization";
|
|
1514
|
-
} & {
|
|
1515
|
-
params: {
|
|
1516
|
-
organizationId: string;
|
|
1517
|
-
} & import("../common-types").QueryParams;
|
|
1518
|
-
}): Promise<import("../common-types").CollectionProp<import("./usage").UsageProps>>;
|
|
1519
|
-
(opts: {
|
|
1520
|
-
entityType: "User";
|
|
1521
|
-
action: "getManyForSpace";
|
|
1522
|
-
} & {
|
|
1523
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
|
|
1524
|
-
}): Promise<import("../common-types").CollectionProp<import("./user").UserProps>>;
|
|
1525
|
-
(opts: {
|
|
1526
|
-
entityType: "User";
|
|
1527
|
-
action: "getForSpace";
|
|
1528
|
-
} & {
|
|
1529
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1530
|
-
userId: string;
|
|
1531
|
-
};
|
|
1532
|
-
}): Promise<import("./user").UserProps>;
|
|
1533
|
-
(opts: {
|
|
1534
|
-
entityType: "User";
|
|
1535
|
-
action: "getCurrent";
|
|
1536
|
-
} & {
|
|
1537
|
-
params?: import("../common-types").QueryParams | undefined;
|
|
1538
|
-
}): Promise<any>;
|
|
1539
|
-
(opts: {
|
|
1540
|
-
entityType: "User";
|
|
1541
|
-
action: "getForOrganization";
|
|
1542
|
-
} & {
|
|
1543
|
-
params: import("../common-types").GetOrganizationParams & {
|
|
1544
|
-
userId: string;
|
|
1545
|
-
};
|
|
1546
|
-
}): Promise<import("./user").UserProps>;
|
|
1547
|
-
(opts: {
|
|
1548
|
-
entityType: "User";
|
|
1549
|
-
action: "getManyForOrganization";
|
|
1550
|
-
} & {
|
|
1551
|
-
params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
|
|
1552
|
-
}): Promise<import("../common-types").CollectionProp<import("./user").UserProps>>;
|
|
1553
|
-
(opts: {
|
|
1554
|
-
entityType: "Webhook";
|
|
1555
|
-
action: "get";
|
|
1556
|
-
} & {
|
|
1557
|
-
params: import("../common-types").GetWebhookParams;
|
|
1558
|
-
}): Promise<import("./webhook").WebhookProps>;
|
|
1559
|
-
(opts: {
|
|
1560
|
-
entityType: "Webhook";
|
|
1561
|
-
action: "getMany";
|
|
1562
|
-
} & {
|
|
1563
|
-
params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
|
|
1564
|
-
}): Promise<import("../common-types").CollectionProp<import("./webhook").WebhookProps>>;
|
|
1565
|
-
(opts: {
|
|
1566
|
-
entityType: "Webhook";
|
|
1567
|
-
action: "getCallDetails";
|
|
1568
|
-
} & {
|
|
1569
|
-
params: import("../common-types").GetWebhookCallDetailsUrl;
|
|
1570
|
-
}): Promise<import("./webhook").WebhookCallDetailsProps>;
|
|
1571
|
-
(opts: {
|
|
1572
|
-
entityType: "Webhook";
|
|
1573
|
-
action: "getHealthStatus";
|
|
1574
|
-
} & {
|
|
1575
|
-
params: import("../common-types").GetWebhookParams;
|
|
1576
|
-
}): Promise<import("./webhook").WebhookHealthProps>;
|
|
1577
|
-
(opts: {
|
|
1578
|
-
entityType: "Webhook";
|
|
1579
|
-
action: "getManyCallDetails";
|
|
1580
|
-
} & {
|
|
1581
|
-
params: import("../common-types").GetSpaceParams & {
|
|
1582
|
-
webhookDefinitionId: string;
|
|
1583
|
-
} & import("../common-types").QueryParams;
|
|
1584
|
-
}): Promise<import("../common-types").CollectionProp<Pick<import("./webhook").WebhookCallDetailsProps, "sys" | "statusCode" | "errors" | "eventType" | "url" | "requestAt" | "responseAt">>>;
|
|
1585
|
-
(opts: {
|
|
1586
|
-
entityType: "Webhook";
|
|
1587
|
-
action: "create";
|
|
1588
|
-
} & {
|
|
1589
|
-
params: import("../common-types").GetSpaceParams;
|
|
1590
|
-
} & {
|
|
1591
|
-
payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation"> & Partial<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "headers">>>;
|
|
1592
|
-
} & {
|
|
1593
|
-
headers?: Record<string, unknown> | undefined;
|
|
1594
|
-
}): Promise<import("./webhook").WebhookProps>;
|
|
1595
|
-
(opts: {
|
|
1596
|
-
entityType: "Webhook";
|
|
1597
|
-
action: "createWithId";
|
|
1598
|
-
} & {
|
|
1599
|
-
params: import("../common-types").GetWebhookParams;
|
|
1600
|
-
} & {
|
|
1601
|
-
payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation"> & Partial<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "headers">>>;
|
|
1602
|
-
} & {
|
|
1603
|
-
headers?: Record<string, unknown> | undefined;
|
|
1604
|
-
}): Promise<import("./webhook").WebhookProps>;
|
|
1605
|
-
(opts: {
|
|
1606
|
-
entityType: "Webhook";
|
|
1607
|
-
action: "update";
|
|
1608
|
-
} & {
|
|
1609
|
-
params: import("../common-types").GetWebhookParams;
|
|
1610
|
-
} & {
|
|
1611
|
-
payload: import("./webhook").WebhookProps;
|
|
1612
|
-
}): Promise<import("./webhook").WebhookProps>;
|
|
1613
|
-
(opts: {
|
|
1614
|
-
entityType: "Webhook";
|
|
1615
|
-
action: "delete";
|
|
1616
|
-
} & {
|
|
1617
|
-
params: import("../common-types").GetWebhookParams;
|
|
1618
|
-
}): Promise<void>;
|
|
1619
|
-
}, data: import("../common-types").CollectionProp<TaskProps>) => import("../common-types").Collection<Task, TaskProps>;
|
|
42
|
+
export declare const wrapTaskCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<TaskProps>) => import("../common-types").Collection<Task, TaskProps>;
|
|
1620
43
|
export {};
|