@shapediver/sdk.platform-api-sdk-v1 2.12.8 → 2.12.9
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/auth/SdPlatformAuthServiceApi.d.ts +2 -0
- package/dist/auth/SdPlatformAuthServiceApi.d.ts.map +1 -1
- package/dist/bundle.js +224 -140
- package/dist/bundle.node.js +224 -140
- package/dist/resources/SdPlatformApiClientsApi.d.ts +28 -1
- package/dist/resources/SdPlatformApiClientsApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformApiTokenApi.d.ts +10 -11
- package/dist/resources/SdPlatformApiTokenApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformBackendSystemApi.d.ts +12 -9
- package/dist/resources/SdPlatformBackendSystemApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformBookmarkApi.d.ts +7 -4
- package/dist/resources/SdPlatformBookmarkApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformChargebeeApi.d.ts +23 -0
- package/dist/resources/SdPlatformChargebeeApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformDocumentApi.d.ts +5 -5
- package/dist/resources/SdPlatformDomainApi.d.ts +6 -4
- package/dist/resources/SdPlatformDomainApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformHttpLogApi.d.ts +2 -1
- package/dist/resources/SdPlatformHttpLogApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformImageApi.d.ts +13 -5
- package/dist/resources/SdPlatformImageApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformModelApi.d.ts +15 -13
- package/dist/resources/SdPlatformModelApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformModelSharingApi.d.ts +11 -10
- package/dist/resources/SdPlatformModelSharingApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformModelTokenApi.d.ts +5 -0
- package/dist/resources/SdPlatformModelTokenApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformModelTransferApi.d.ts +1 -1
- package/dist/resources/SdPlatformNotificationApi.d.ts +14 -14
- package/dist/resources/SdPlatformOrganizationAnalyticsApi.d.ts +2 -2
- package/dist/resources/SdPlatformOrganizationApi.d.ts +8 -5
- package/dist/resources/SdPlatformOrganizationApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformPolicyApi.d.ts +11 -11
- package/dist/resources/SdPlatformSavedStateApi.d.ts +12 -12
- package/dist/resources/SdPlatformSavedStateSharingApi.d.ts +13 -13
- package/dist/resources/SdPlatformTagApi.d.ts +10 -0
- package/dist/resources/SdPlatformTagApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformUserAnalyticsApi.d.ts +2 -2
- package/dist/resources/SdPlatformUserApi.d.ts +10 -10
- package/dist/resources/SdPlatformWebhookApi.d.ts +6 -6
- package/package.json +1 -1
package/dist/bundle.node.js
CHANGED
|
@@ -1510,6 +1510,12 @@ class SdPlatformAuthServiceApi {
|
|
|
1510
1510
|
this.__api = __context.api;
|
|
1511
1511
|
this.__config = __context.config;
|
|
1512
1512
|
}
|
|
1513
|
+
__resolveConfigAuth() {
|
|
1514
|
+
return {
|
|
1515
|
+
access_token: this.__context.accessTokenDetails.access_token,
|
|
1516
|
+
client_id: this.__context.config.clientId
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1513
1519
|
__resolveConfig() {
|
|
1514
1520
|
return {};
|
|
1515
1521
|
}
|
|
@@ -1675,7 +1681,7 @@ class SdPlatformAuthServiceApi {
|
|
|
1675
1681
|
* @returns
|
|
1676
1682
|
*/
|
|
1677
1683
|
requestAuthorizationCode(params) {
|
|
1678
|
-
return this.__api.
|
|
1684
|
+
return this.__api.post(SdPlatformRequestId_1.RequestId.RequestAuthorizationCode, "oauth/authorize", params, Object.assign(Object.assign({}, this.__resolveConfig()), this.__resolveConfigAuth()));
|
|
1679
1685
|
}
|
|
1680
1686
|
__decodeToken(token) {
|
|
1681
1687
|
return (0, jwt_decode_1.default)(token);
|
|
@@ -1873,41 +1879,40 @@ class SdPlatformApiTokenApi extends ResourcesApi_1.ResourcesApi {
|
|
|
1873
1879
|
}
|
|
1874
1880
|
/**
|
|
1875
1881
|
* Get the token.
|
|
1876
|
-
* @param
|
|
1877
|
-
* @returns
|
|
1882
|
+
* @param key_id
|
|
1883
|
+
* @returns api token response.
|
|
1878
1884
|
*/
|
|
1879
1885
|
get(key_id) {
|
|
1880
1886
|
return super.__get(SdPlatformRequestId_1.RequestId.ApiTokenGet, key_id);
|
|
1881
1887
|
}
|
|
1882
1888
|
/**
|
|
1883
1889
|
* Query the API tokens.
|
|
1884
|
-
* @param { SdPlatformApiTokenQueryParameters
|
|
1885
|
-
* @returns {
|
|
1890
|
+
* @param query - {@link SdPlatformApiTokenQueryParameters} optional query parameters.
|
|
1891
|
+
* @returns query response with @see {@link SdPlatformResponseApiToken} as result.
|
|
1886
1892
|
*/
|
|
1887
1893
|
query(query = {}) {
|
|
1888
1894
|
return super.__query(SdPlatformRequestId_1.RequestId.ApiTokenQuery, query);
|
|
1889
1895
|
}
|
|
1890
1896
|
/**
|
|
1891
1897
|
* Create a token.
|
|
1892
|
-
* @param { SdPlatformRequestApiTokenCreate
|
|
1893
|
-
* @returns {
|
|
1898
|
+
* @param body - {@link SdPlatformRequestApiTokenCreate} body or create token parameters.
|
|
1899
|
+
* @returns @see {@link SdPlatformResponseApiTokenWithSecret} as result.
|
|
1894
1900
|
*/
|
|
1895
1901
|
create(body) {
|
|
1896
1902
|
return super.__post(SdPlatformRequestId_1.RequestId.ApiTokenCreate, body);
|
|
1897
1903
|
}
|
|
1898
1904
|
/**
|
|
1899
1905
|
* Update and API token.
|
|
1900
|
-
* @param
|
|
1901
|
-
* @param { SdPlatformRequestApiTokenPatch
|
|
1902
|
-
* @returns {
|
|
1906
|
+
* @param key_id
|
|
1907
|
+
* @param @see {@link SdPlatformRequestApiTokenPatch} patch body with parameters.
|
|
1908
|
+
* @returns patch response with @see {@link SdPlatformResponseApiToken}
|
|
1903
1909
|
*/
|
|
1904
1910
|
patch(key_id, body) {
|
|
1905
1911
|
return super.__patch(SdPlatformRequestId_1.RequestId.ApiTokenPatch, key_id, body);
|
|
1906
1912
|
}
|
|
1907
1913
|
/**
|
|
1908
1914
|
* Delete an API token.
|
|
1909
|
-
* @param
|
|
1910
|
-
* @returns { Promise<SdPlatformDeleteResponse> }
|
|
1915
|
+
* @param key_id
|
|
1911
1916
|
*/
|
|
1912
1917
|
delete(key_id) {
|
|
1913
1918
|
return super.__delete(SdPlatformRequestId_1.RequestId.ApiTokenDelete, key_id);
|
|
@@ -2147,33 +2152,33 @@ class SdPlatformBackendSystemApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2147
2152
|
}
|
|
2148
2153
|
/**
|
|
2149
2154
|
* Query the backend systems.
|
|
2150
|
-
* @param { SdPlatformBackendSystemQueryParameters
|
|
2151
|
-
* @returns {
|
|
2155
|
+
* @param query - {@link SdPlatformBackendSystemQueryParameters} query parameters.
|
|
2156
|
+
* @returns - {@link SdPlatformQueryResponse} response with {@link SdPlatformResponseBackendSystem} or {@link SdPlatformResponseBackendSystemAdmin} as result.
|
|
2152
2157
|
*/
|
|
2153
2158
|
query(query = {}) {
|
|
2154
2159
|
return super.__query(SdPlatformRequestId_1.RequestId.BackendSystemQuery, query);
|
|
2155
2160
|
}
|
|
2156
2161
|
/**
|
|
2157
2162
|
* Create the backend system.
|
|
2158
|
-
* @param { SdPlatformRequestBackendSystemCreate
|
|
2159
|
-
* @returns {
|
|
2163
|
+
* @param body - {@link SdPlatformRequestBackendSystemCreate} body parameters.
|
|
2164
|
+
* @returns - {@link SdPlatformPostResponse} with {@link SdPlatformResponseBackendSystemAdmin} as result.
|
|
2160
2165
|
*/
|
|
2161
2166
|
create(body) {
|
|
2162
2167
|
return super.__post(SdPlatformRequestId_1.RequestId.BackendSystemCreate, body);
|
|
2163
2168
|
}
|
|
2164
2169
|
/**
|
|
2165
2170
|
* Updates the backend system.
|
|
2166
|
-
* @param
|
|
2167
|
-
* @param { SdPlatformRequestBackendSystemPatch
|
|
2168
|
-
* @returns {
|
|
2171
|
+
* @param id - the backend system id.
|
|
2172
|
+
* @param body - {@link SdPlatformRequestBackendSystemPatch} update parameters.
|
|
2173
|
+
* @returns - {@link SdPlatformPatchResponse} with {@link SdPlatformResponseBackendSystem} or {@link SdPlatformResponseBackendSystemAdmin} as result.
|
|
2169
2174
|
*/
|
|
2170
2175
|
patch(id, body) {
|
|
2171
2176
|
return super.__patch(SdPlatformRequestId_1.RequestId.BackendSystemPatch, id, body);
|
|
2172
2177
|
}
|
|
2173
2178
|
/**
|
|
2174
2179
|
* Get a token for interacting with a geometry backend system.
|
|
2175
|
-
* @param { SdPlatformRequestBackendSystemToken
|
|
2176
|
-
* @returns {
|
|
2180
|
+
* @param body - {@link SdPlatformRequestBackendSystemToken} body
|
|
2181
|
+
* @returns - {@link SdPlatformPostResponse} with {@link SdPlatformResponseBackendSystemToken} as result.
|
|
2177
2182
|
*/
|
|
2178
2183
|
token(body) {
|
|
2179
2184
|
return super.__action(SdPlatformRequestId_1.RequestId.BackendSystemToken, ResourcesApi_1.Action.Post, "token", body);
|
|
@@ -2196,21 +2201,24 @@ const ResourcesApi_1 = __webpack_require__(61);
|
|
|
2196
2201
|
* Operations for creating and deleting bookmarks
|
|
2197
2202
|
*/
|
|
2198
2203
|
class SdPlatformBookmarkApi extends ResourcesApi_1.ResourcesApi {
|
|
2204
|
+
/**
|
|
2205
|
+
* The resource path.
|
|
2206
|
+
*/
|
|
2199
2207
|
get __resourcePath() {
|
|
2200
2208
|
return "bookmarks";
|
|
2201
2209
|
}
|
|
2202
2210
|
/**
|
|
2203
2211
|
* Create a bookmark for the model for the user identified by @see SdPlatformAuthServiceApi
|
|
2204
|
-
* @param { SdPlatformRequestBookmarkCreate
|
|
2205
|
-
* @returns {
|
|
2212
|
+
* @param body - {@link SdPlatformRequestBookmarkCreate} creae parameters.
|
|
2213
|
+
* @returns - {@link SdPlatformPostResponse} with 'success' property being true,
|
|
2206
2214
|
*/
|
|
2207
2215
|
create(body) {
|
|
2208
2216
|
return super.__post(SdPlatformRequestId_1.RequestId.BookmarkCreate, body);
|
|
2209
2217
|
}
|
|
2210
2218
|
/**
|
|
2211
2219
|
* Delete a bookmark for the model for the user identified by @see SdPlatformAuthServiceApi
|
|
2212
|
-
* @param id
|
|
2213
|
-
* @returns {
|
|
2220
|
+
* @param id - id of the model whose bookmark shall be deleted
|
|
2221
|
+
* @returns - {@link SdPlatformDeleteResponse}
|
|
2214
2222
|
*/
|
|
2215
2223
|
delete(id) {
|
|
2216
2224
|
return super.__delete(SdPlatformRequestId_1.RequestId.BookmarkDelete, id);
|
|
@@ -2236,15 +2244,38 @@ class SdPlatformChargebeeApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2236
2244
|
get __resourcePath() {
|
|
2237
2245
|
return "chargebee";
|
|
2238
2246
|
}
|
|
2247
|
+
/**
|
|
2248
|
+
* Get data required to integrate a chargebee with website.
|
|
2249
|
+
* @see {@link https://apidocs.chargebee.com/docs/api/hosted_pages?prod_cat_ver=2} for more.
|
|
2250
|
+
* @param body - the parameters of a request.
|
|
2251
|
+
* @returns
|
|
2252
|
+
*/
|
|
2239
2253
|
hostedPage(body) {
|
|
2240
2254
|
return super.__action(SdPlatformRequestId_1.RequestId.ChargebeeHostedPage, ResourcesApi_1.Action.Post, "hosted_page", body);
|
|
2241
2255
|
}
|
|
2256
|
+
/**
|
|
2257
|
+
* Get data required to integrade hosted page payment method with website.
|
|
2258
|
+
* @see {@link https://apidocs.chargebee.com/docs/api/hosted_pages?prod_cat_ver=2#update_payment_method}
|
|
2259
|
+
* @param body - the parameters of a request.
|
|
2260
|
+
* @returns
|
|
2261
|
+
*/
|
|
2242
2262
|
hostedPageUpdatePaymentMethod(body) {
|
|
2243
2263
|
return super.__action(SdPlatformRequestId_1.RequestId.ChargebeeHostedPageUpdatePaymentMethod, ResourcesApi_1.Action.Post, "hosted_page_update_payment_method", body);
|
|
2244
2264
|
}
|
|
2265
|
+
/**
|
|
2266
|
+
* Gets all the required data for opening a chargebee portal session.
|
|
2267
|
+
* @see - {@link https://apidocs.chargebee.com/docs/api/portal_sessions?prod_cat_ver=2} for more.
|
|
2268
|
+
* @param body - {@link @SdPlatformRequestChargebeePortalSession} body
|
|
2269
|
+
* @returns - post response with {@link SdPlatformResponseChargebeePortalSession} data
|
|
2270
|
+
*/
|
|
2245
2271
|
portalSession(body) {
|
|
2246
2272
|
return super.__action(SdPlatformRequestId_1.RequestId.ChargebeePortalSession, ResourcesApi_1.Action.Post, "portal_session", body);
|
|
2247
2273
|
}
|
|
2274
|
+
/**
|
|
2275
|
+
* Queries the chargebee plans.
|
|
2276
|
+
* @param body - {@link SdPlatformChargebeePlanQueryParameters } body
|
|
2277
|
+
* @returns - post response with {@link SdPlatformResponseChargebeePlan} data
|
|
2278
|
+
*/
|
|
2248
2279
|
queryChargebeePlans(body) {
|
|
2249
2280
|
return super.__action(SdPlatformRequestId_1.RequestId.ChargebeeQueryPlan, ResourcesApi_1.Action.Post, "plans/query", body);
|
|
2250
2281
|
}
|
|
@@ -2287,8 +2318,8 @@ class SdPlatformDomainApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2287
2318
|
/**
|
|
2288
2319
|
* Get a domain by id.
|
|
2289
2320
|
* @param id
|
|
2290
|
-
* @param embed
|
|
2291
|
-
* @returns
|
|
2321
|
+
* @param embed - array of {@link SdPlatformDomainGetEmbeddableFields}
|
|
2322
|
+
* @returns - {@link SdPlatformGetResponse} with {@link SdPlatformResponseDomain} as result.
|
|
2292
2323
|
*/
|
|
2293
2324
|
get(id, embed = []) {
|
|
2294
2325
|
return super.__get(SdPlatformRequestId_1.RequestId.DomainGet, id, embed);
|
|
@@ -2302,7 +2333,9 @@ class SdPlatformDomainApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2302
2333
|
return super.__query(SdPlatformRequestId_1.RequestId.DomainQuery, query);
|
|
2303
2334
|
}
|
|
2304
2335
|
/**
|
|
2305
|
-
* Create a domain.
|
|
2336
|
+
* Create a new domain.
|
|
2337
|
+
* @param body - {@link SdPlatformRequestDomainCreate} as request body.
|
|
2338
|
+
* @returns - new domain.
|
|
2306
2339
|
*/
|
|
2307
2340
|
create(body) {
|
|
2308
2341
|
return super.__post(SdPlatformRequestId_1.RequestId.DomainCreate, body);
|
|
@@ -2310,7 +2343,7 @@ class SdPlatformDomainApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2310
2343
|
/**
|
|
2311
2344
|
* Patch a domain.
|
|
2312
2345
|
* @param id - the id of a domain
|
|
2313
|
-
* @param body - properties to patch
|
|
2346
|
+
* @param body - {@link SdPlatformRequestDomainPatch} as properties to patch.
|
|
2314
2347
|
*/
|
|
2315
2348
|
patch(id, body) {
|
|
2316
2349
|
return super.__patch(SdPlatformRequestId_1.RequestId.DomainPatch, id, body);
|
|
@@ -2345,7 +2378,8 @@ class SdPlatformHttpLogApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2345
2378
|
}
|
|
2346
2379
|
/**
|
|
2347
2380
|
* Query HTTP logs.
|
|
2348
|
-
* @param body
|
|
2381
|
+
* @param body - the body of a request.
|
|
2382
|
+
* @returns - http logs.
|
|
2349
2383
|
*/
|
|
2350
2384
|
query(body = {}) {
|
|
2351
2385
|
return super.__query(SdPlatformRequestId_1.RequestId.HttpLogQuery, body);
|
|
@@ -2364,6 +2398,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2364
2398
|
exports.SdPlatformImageApi = exports.SdPlatformImageQueryEmbeddableFields = void 0;
|
|
2365
2399
|
const SdPlatformRequestId_1 = __webpack_require__(56);
|
|
2366
2400
|
const ResourcesApi_1 = __webpack_require__(61);
|
|
2401
|
+
/**
|
|
2402
|
+
* Platform image emedabble fields.
|
|
2403
|
+
*/
|
|
2367
2404
|
var SdPlatformImageQueryEmbeddableFields;
|
|
2368
2405
|
(function (SdPlatformImageQueryEmbeddableFields) {
|
|
2369
2406
|
SdPlatformImageQueryEmbeddableFields["User"] = "user";
|
|
@@ -2378,23 +2415,25 @@ class SdPlatformImageApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2378
2415
|
}
|
|
2379
2416
|
/**
|
|
2380
2417
|
* Get image by id
|
|
2381
|
-
* @param id
|
|
2382
|
-
* @param embed
|
|
2383
|
-
* @returns
|
|
2418
|
+
* @param id - the id of an image.
|
|
2419
|
+
* @param embed - array of {@link SdPlatformImageQueryEmbeddableFields} fields to embed.
|
|
2420
|
+
* @returns image
|
|
2384
2421
|
*/
|
|
2385
2422
|
get(id, embed = []) {
|
|
2386
2423
|
return super.__get(SdPlatformRequestId_1.RequestId.ImageGet, id, embed);
|
|
2387
2424
|
}
|
|
2388
2425
|
/**
|
|
2389
2426
|
* Queries images
|
|
2390
|
-
* @param body
|
|
2427
|
+
* @param body - {@link SdPlatformImageQueryParameters} as body.
|
|
2428
|
+
*
|
|
2429
|
+
* @remarks body is optional.
|
|
2391
2430
|
*/
|
|
2392
2431
|
query(body = {}) {
|
|
2393
2432
|
return super.__query(SdPlatformRequestId_1.RequestId.ImageQuery, body);
|
|
2394
2433
|
}
|
|
2395
2434
|
/**
|
|
2396
2435
|
* Create an image
|
|
2397
|
-
* @param body
|
|
2436
|
+
* @param body {@link SdPlatformRequestImageCreate}
|
|
2398
2437
|
*/
|
|
2399
2438
|
create(body) {
|
|
2400
2439
|
return super.__post(SdPlatformRequestId_1.RequestId.ImageCreate, body);
|
|
@@ -2455,33 +2494,33 @@ class SdPlatformModelApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2455
2494
|
}
|
|
2456
2495
|
/**
|
|
2457
2496
|
* Get model by id, guid, slug, or link_sharing_slug.
|
|
2458
|
-
* @param
|
|
2459
|
-
* @param {
|
|
2460
|
-
* @returns
|
|
2497
|
+
* @param id - the model id.
|
|
2498
|
+
* @param embed array of {@link SdPlatformModelGetEmbeddableFields} embeddable properties.
|
|
2499
|
+
* @returns get response with a model.
|
|
2461
2500
|
*/
|
|
2462
2501
|
get(id, embed = []) {
|
|
2463
2502
|
return super.__get(SdPlatformRequestId_1.RequestId.ModelGet, id, embed);
|
|
2464
2503
|
}
|
|
2465
2504
|
/**
|
|
2466
2505
|
* Queries the models.
|
|
2467
|
-
* @param { SdPlatformModelQueryParameters
|
|
2468
|
-
* @returns {
|
|
2506
|
+
* @param query {@link SdPlatformModelQueryParameters}
|
|
2507
|
+
* @returns the {@link SdPlatformQueryResponse} response with one of {@link SdPlatformResponseModelPublic} as result.
|
|
2469
2508
|
*/
|
|
2470
2509
|
query(query = {}) {
|
|
2471
2510
|
return super.__query(SdPlatformRequestId_1.RequestId.ModelQuery, query);
|
|
2472
2511
|
}
|
|
2473
2512
|
/**
|
|
2474
2513
|
* Create a model.
|
|
2475
|
-
* @param { SdPlatformRequestModelCreate
|
|
2476
|
-
* @returns {
|
|
2514
|
+
* @param body {@link SdPlatformRequestModelCreate} the parameters of a model.
|
|
2515
|
+
* @returns the {@link SdPlatformPostResponse} response with {@link SdPlatformResponseModelOwner} as result.
|
|
2477
2516
|
*/
|
|
2478
2517
|
create(body = {}) {
|
|
2479
2518
|
return super.__post(SdPlatformRequestId_1.RequestId.ModelCreate, body);
|
|
2480
2519
|
}
|
|
2481
2520
|
/**
|
|
2482
2521
|
* Patch a model, e.g. to update its status to "done" after successful upload and model checking
|
|
2483
|
-
* @param
|
|
2484
|
-
* @param {
|
|
2522
|
+
* @param id - the model id.
|
|
2523
|
+
* @param params {@link SdPlatformRequestModelPatch} or {@link SdPlatformRequestModelPatchAdmin} as patch paramaters
|
|
2485
2524
|
* @returns { Promise<SdPlatformPatchResponse<T>> }
|
|
2486
2525
|
*/
|
|
2487
2526
|
patch(id, params) {
|
|
@@ -2489,16 +2528,16 @@ class SdPlatformModelApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2489
2528
|
}
|
|
2490
2529
|
/**
|
|
2491
2530
|
* Deletes a model.
|
|
2492
|
-
* @param
|
|
2493
|
-
* @returns {
|
|
2531
|
+
* @param id - the model id.
|
|
2532
|
+
* @returns the {@link SdPlatformDeleteResponse} response.
|
|
2494
2533
|
*/
|
|
2495
2534
|
delete(id) {
|
|
2496
2535
|
return super.__delete(SdPlatformRequestId_1.RequestId.ModelDelete, id);
|
|
2497
2536
|
}
|
|
2498
2537
|
/**
|
|
2499
2538
|
* Decrypt a ticket, the calling user must have permission "decrypt_ticket" for the model identified by the ticket.
|
|
2500
|
-
* @param
|
|
2501
|
-
* @returns
|
|
2539
|
+
* @param ticket
|
|
2540
|
+
* @returns decrypted ticket result {@link SdPlatformResponseDecryptTicketResult}
|
|
2502
2541
|
*/
|
|
2503
2542
|
decryptTicket(ticket) {
|
|
2504
2543
|
return super.__action(SdPlatformRequestId_1.RequestId.DecryptTicket, ResourcesApi_1.Action.Post, "decrypt_ticket", {
|
|
@@ -2507,6 +2546,8 @@ class SdPlatformModelApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2507
2546
|
}
|
|
2508
2547
|
/**
|
|
2509
2548
|
* Post method which is to be used to fetch data necessary for iframe embedding of a model using the ShapeDiver Viewer.
|
|
2549
|
+
* @param slug - the model slug.
|
|
2550
|
+
* @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseIFrameData} as data.
|
|
2510
2551
|
*/
|
|
2511
2552
|
iframeEmbedding(slug) {
|
|
2512
2553
|
const is_iframe = parent !== window;
|
|
@@ -2544,24 +2585,24 @@ class SdPlatformModelSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2544
2585
|
}
|
|
2545
2586
|
/**
|
|
2546
2587
|
* Create a model sharing relationship.
|
|
2547
|
-
* @param body
|
|
2548
|
-
* @returns
|
|
2588
|
+
* @param body {@link SdPlatformRequestModelSharingCreate} body of a request with parameter to create sharing.
|
|
2589
|
+
* @returns the {@link SdPlatformPostResponse} response with {@link SdPlatformResponseModelSharing} as parameter.
|
|
2549
2590
|
*/
|
|
2550
2591
|
create(body) {
|
|
2551
2592
|
return super.__post(SdPlatformRequestId_1.RequestId.ModelSharingCreate, body);
|
|
2552
2593
|
}
|
|
2553
2594
|
/**
|
|
2554
2595
|
* Create multiple sharings.
|
|
2555
|
-
* @param { SdPlatformRequestModelSharingCreateMultiple
|
|
2556
|
-
* @returns {
|
|
2596
|
+
* @param body {@link SdPlatformRequestModelSharingCreateMultiple}
|
|
2597
|
+
* @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseModelSharing} as result.
|
|
2557
2598
|
*/
|
|
2558
2599
|
createMultiple(body) {
|
|
2559
2600
|
return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingCreateMultiple, ResourcesApi_1.Action.Post, "model_sharing_multiple", body);
|
|
2560
2601
|
}
|
|
2561
2602
|
/**
|
|
2562
2603
|
* Query model sharing relationships.
|
|
2563
|
-
* @param query
|
|
2564
|
-
* @returns
|
|
2604
|
+
* @param query {@link SdPlatformModelSharingQueryParameters}
|
|
2605
|
+
* @returns the {@link SdPlatformQueryResponse} response with {@see SdPlatformResponseModelSharing} as data result.
|
|
2565
2606
|
*/
|
|
2566
2607
|
query(query = {}) {
|
|
2567
2608
|
return super.__query(SdPlatformRequestId_1.RequestId.ModelSharingQuery, query);
|
|
@@ -2569,8 +2610,8 @@ class SdPlatformModelSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2569
2610
|
/**
|
|
2570
2611
|
* Query model sharing relationships by model id.
|
|
2571
2612
|
* @param model_id
|
|
2572
|
-
* @param query
|
|
2573
|
-
* @returns
|
|
2613
|
+
* @param query {@link SdPlatformModelSharingQueryParameters}
|
|
2614
|
+
* @returns the {@link SdPlatformQueryResponse} response with {@see SdPlatformResponseModelSharing} as data result.
|
|
2574
2615
|
*/
|
|
2575
2616
|
queryByModel(model_id, query = {}) {
|
|
2576
2617
|
return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingQueryByModel, ResourcesApi_1.Action.Post, `model/${model_id}/query`, query);
|
|
@@ -2578,7 +2619,8 @@ class SdPlatformModelSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2578
2619
|
/**
|
|
2579
2620
|
* Query model sharing relationships by user id.
|
|
2580
2621
|
* @param user_id
|
|
2581
|
-
* @param query
|
|
2622
|
+
* @param query {@link SdPlatformModelSharingQueryParameters}
|
|
2623
|
+
* @returns the {@link SdPlatformQueryResponse} response with {@see SdPlatformResponseModelSharing} as data result.
|
|
2582
2624
|
*/
|
|
2583
2625
|
queryByUser(user_id, query = {}) {
|
|
2584
2626
|
return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingQueryByUser, ResourcesApi_1.Action.Post, `user/${user_id}/query`, query);
|
|
@@ -2587,7 +2629,7 @@ class SdPlatformModelSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2587
2629
|
* Get model sharing relationships by model id and user id.
|
|
2588
2630
|
* @param model_id
|
|
2589
2631
|
* @param user_id
|
|
2590
|
-
* @returns
|
|
2632
|
+
* @returns the {@link SdPlatformGetResponse} response with {@see SdPlatformResponseModelSharing} as data result.
|
|
2591
2633
|
*/
|
|
2592
2634
|
getByModelAndUser(model_id, user_id) {
|
|
2593
2635
|
return super.__get(SdPlatformRequestId_1.RequestId.ModelSharingGetByModelAndUser, `model/${model_id}/user/${user_id}`);
|
|
@@ -2629,6 +2671,11 @@ class SdPlatformModelTokenApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2629
2671
|
get __resourcePath() {
|
|
2630
2672
|
return "tokens";
|
|
2631
2673
|
}
|
|
2674
|
+
/**
|
|
2675
|
+
* Get a token for interacting with a model on its geometry backend system.
|
|
2676
|
+
* @param body {@link SdPlatformRequestModelTokenCreate} body of a request.
|
|
2677
|
+
* @returns token for accessing one or several models on a ShapeDiver Geometry Backend system
|
|
2678
|
+
*/
|
|
2632
2679
|
create(body) {
|
|
2633
2680
|
return super.__post(SdPlatformRequestId_1.RequestId.TokenCreate, body);
|
|
2634
2681
|
}
|
|
@@ -2664,7 +2711,7 @@ class SdPlatformModelTransferApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2664
2711
|
* Creates a model transfer request. The calling user must have permission "update_owner" for the model.
|
|
2665
2712
|
* In case the receiving user immediately accepts the transfer request, no notification will be returned.
|
|
2666
2713
|
* @param model_id
|
|
2667
|
-
* @param body
|
|
2714
|
+
* @param body {@link SdPlatformRequestModelTransferCreate}
|
|
2668
2715
|
* @returns
|
|
2669
2716
|
*/
|
|
2670
2717
|
createModelTransferRequest(model_id, body) {
|
|
@@ -2740,33 +2787,33 @@ class SdPlatformNotificationApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2740
2787
|
}
|
|
2741
2788
|
/**
|
|
2742
2789
|
* Query the notifications.
|
|
2743
|
-
* @param { SdPlatformNotificationQueryParameters
|
|
2744
|
-
* @returns {
|
|
2790
|
+
* @param body {@link SdPlatformNotificationQueryParameters} notifications query body.
|
|
2791
|
+
* @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseNotification} as data result.
|
|
2745
2792
|
*/
|
|
2746
2793
|
query(body = {}) {
|
|
2747
2794
|
return super.__query(SdPlatformRequestId_1.RequestId.NotificationQuery, body);
|
|
2748
2795
|
}
|
|
2749
2796
|
/**
|
|
2750
2797
|
* Creates the notification.
|
|
2751
|
-
* @param {
|
|
2752
|
-
* @returns {
|
|
2798
|
+
* @param body {@link SdPlatformRequestNotificationCreate}
|
|
2799
|
+
* @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseNotification} as result.
|
|
2753
2800
|
*/
|
|
2754
2801
|
create(body) {
|
|
2755
2802
|
return super.__post(SdPlatformRequestId_1.RequestId.NotificationCreate, body);
|
|
2756
2803
|
}
|
|
2757
2804
|
/**
|
|
2758
2805
|
* Updates the notification-
|
|
2759
|
-
* @param
|
|
2760
|
-
* @param { SdPlatformRequestNotificationPatch
|
|
2761
|
-
* @returns {
|
|
2806
|
+
* @param id - the id of a notification.
|
|
2807
|
+
* @param body {@link SdPlatformRequestNotificationPatch} body of a notification.
|
|
2808
|
+
* @returns the {@link SdPlatformPatchResponse} response with {@link SdPlatformResponseNotification} as result.
|
|
2762
2809
|
*/
|
|
2763
2810
|
patch(id, body) {
|
|
2764
2811
|
return this.__patch(SdPlatformRequestId_1.RequestId.NotificationPatch, id, body);
|
|
2765
2812
|
}
|
|
2766
2813
|
/**
|
|
2767
2814
|
* Deletes the notification.
|
|
2768
|
-
* @param
|
|
2769
|
-
* @returns {
|
|
2815
|
+
* @param id - the id of a notification.
|
|
2816
|
+
* @returns the {@link SdPlatformDeleteResponse}
|
|
2770
2817
|
*/
|
|
2771
2818
|
delete(id) {
|
|
2772
2819
|
return this.__delete(SdPlatformRequestId_1.RequestId.NotificationDelete, id);
|
|
@@ -2774,23 +2821,23 @@ class SdPlatformNotificationApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2774
2821
|
/**
|
|
2775
2822
|
* Gets the summary of notifications.
|
|
2776
2823
|
* Gives information about total number of notifications and unread number of notifications.
|
|
2777
|
-
* @param
|
|
2778
|
-
* @returns {
|
|
2824
|
+
* @param embed - array of {@link SdPlatformNotificationSummaryEmbeddableFields} embed properties.
|
|
2825
|
+
* @returns the {@link SdPlatformGetResponse} response with {@link SdPlatformResponseNotificationSummary} as data.
|
|
2779
2826
|
*/
|
|
2780
2827
|
summary(embed) {
|
|
2781
2828
|
return super.__get(SdPlatformRequestId_1.RequestId.NotificationSummary, 'summary', embed);
|
|
2782
2829
|
}
|
|
2783
2830
|
/**
|
|
2784
2831
|
* Gets the notification by id.
|
|
2785
|
-
* @param
|
|
2786
|
-
* @returns {
|
|
2832
|
+
* @param id - the id of notification.
|
|
2833
|
+
* @returns the {@link SdPlatformGetResponse} with {@link SdPlatformResponseNotification} as data or one of it's derived classes.
|
|
2787
2834
|
*/
|
|
2788
2835
|
get(id) {
|
|
2789
2836
|
return super.__get(SdPlatformRequestId_1.RequestId.NotificationGet, id);
|
|
2790
2837
|
}
|
|
2791
2838
|
/**
|
|
2792
2839
|
* Marks all notifications of signed in user as read.
|
|
2793
|
-
* @returns {
|
|
2840
|
+
* @returns the {@link SdPlatformPostResponse} response.
|
|
2794
2841
|
*/
|
|
2795
2842
|
markAllAsRead() {
|
|
2796
2843
|
return super.__action(SdPlatformRequestId_1.RequestId.NotificationReadAll, ResourcesApi_1.Action.Post, 'read_all', {});
|
|
@@ -2830,22 +2877,24 @@ class SdPlatformOrganizationApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2830
2877
|
/**
|
|
2831
2878
|
* Get organization by id.
|
|
2832
2879
|
* @param id - organization id.
|
|
2833
|
-
* @param embed
|
|
2880
|
+
* @param embed array of {@link SdPlatformOrganizationEmbeddableFields} embeddable resources.
|
|
2881
|
+
* @returns the {@link SdPlatformGetResponse} response with {@link SdPlatformResponseOrganizationPublic} or derived interfaces as result.
|
|
2834
2882
|
*/
|
|
2835
2883
|
get(id, embed) {
|
|
2836
2884
|
return super.__get(SdPlatformRequestId_1.RequestId.OrganizationGet, id, embed);
|
|
2837
2885
|
}
|
|
2838
2886
|
/**
|
|
2839
2887
|
* Query organizations.
|
|
2840
|
-
* @param body
|
|
2888
|
+
* @param body {@link SdPlatformOrganizationQueryParameters}
|
|
2889
|
+
* @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseOrganizationPublic} or one of it's derived interfaces as data result.
|
|
2841
2890
|
*/
|
|
2842
2891
|
query(body = {}) {
|
|
2843
2892
|
return super.__query(SdPlatformRequestId_1.RequestId.OrganizationQuery, body);
|
|
2844
2893
|
}
|
|
2845
2894
|
/**
|
|
2846
2895
|
* Create an organization, and make the calling user owner of the organization. Will fail in case the user is member of an organization already.
|
|
2847
|
-
* @param body
|
|
2848
|
-
* @returns
|
|
2896
|
+
* @param body {@see SdPlatformRequestOrganizationCreate}
|
|
2897
|
+
* @returns the {@link SdPlatformPostResponse} with {@see SdPlatformResponseOrganizationOwner} as data.
|
|
2849
2898
|
*/
|
|
2850
2899
|
create(body) {
|
|
2851
2900
|
return super.__post(SdPlatformRequestId_1.RequestId.OrganizationCreate, body);
|
|
@@ -2853,7 +2902,8 @@ class SdPlatformOrganizationApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2853
2902
|
/**
|
|
2854
2903
|
* Patch an organization.
|
|
2855
2904
|
* @param id - id of the organization
|
|
2856
|
-
* @param body
|
|
2905
|
+
* @param body {@link SdPlatformRequestOrganizationPatchAny} properties to patch
|
|
2906
|
+
* @response the {@link SdPlatformPatchResponse} with {@link SdPlatformResponseOrganizationAdministrator} or one of it's derived interfaces as data.
|
|
2857
2907
|
*/
|
|
2858
2908
|
patch(id, body) {
|
|
2859
2909
|
return super.__patch(SdPlatformRequestId_1.RequestId.OrganizationPatch, id, body);
|
|
@@ -2950,41 +3000,41 @@ class SdPlatformPolicyApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2950
3000
|
}
|
|
2951
3001
|
/**
|
|
2952
3002
|
* The platform policy api.
|
|
2953
|
-
* @param { SdPlatformPolicyQueryParameters
|
|
2954
|
-
* @returns {
|
|
3003
|
+
* @param body {@see SdPlatformPolicyQueryParameters} query body.
|
|
3004
|
+
* @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponsePolicy} as response.
|
|
2955
3005
|
*/
|
|
2956
3006
|
query(body = {}) {
|
|
2957
3007
|
return super.__query(SdPlatformRequestId_1.RequestId.PolicyQuery, body);
|
|
2958
3008
|
}
|
|
2959
3009
|
/**
|
|
2960
3010
|
* Get information about a policy based on its id or alias
|
|
2961
|
-
* @param
|
|
2962
|
-
* @returns {
|
|
3011
|
+
* @param id_or_alias - id or an alias.
|
|
3012
|
+
* @returns the {@link SdPlatformGetResponse} with {@link SdPlatformResponsePolicy} as response.
|
|
2963
3013
|
*/
|
|
2964
3014
|
get(id_or_alias) {
|
|
2965
3015
|
return super.__get(SdPlatformRequestId_1.RequestId.PolicyGet, id_or_alias);
|
|
2966
3016
|
}
|
|
2967
3017
|
/**
|
|
2968
3018
|
* Creates a platform policy.
|
|
2969
|
-
* @param { SdPlatformRequestPolicyCreate
|
|
2970
|
-
* @returns {
|
|
3019
|
+
* @param body {@link SdPlatformRequestPolicyCreate}
|
|
3020
|
+
* @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponsePolicy} as response.
|
|
2971
3021
|
*/
|
|
2972
3022
|
create(body) {
|
|
2973
3023
|
return super.__post(SdPlatformRequestId_1.RequestId.PolicyCreate, body);
|
|
2974
3024
|
}
|
|
2975
3025
|
/**
|
|
2976
3026
|
* Updates a platform policy.
|
|
2977
|
-
* @param
|
|
2978
|
-
* @param { SdPlatformRequestPolicyPatch}
|
|
2979
|
-
* @returns {
|
|
3027
|
+
* @param id - the policy id.
|
|
3028
|
+
* @param body {@link SdPlatformRequestPolicyPatch} of patch request.
|
|
3029
|
+
* @returns the {@link SdPlatformPatchResponse} with {@link SdPlatformResponsePolicy} as data parameter.
|
|
2980
3030
|
*/
|
|
2981
3031
|
patch(id, body) {
|
|
2982
3032
|
return this.__patch(SdPlatformRequestId_1.RequestId.PolicyPatch, id, body);
|
|
2983
3033
|
}
|
|
2984
3034
|
/**
|
|
2985
3035
|
* Deletes the policy
|
|
2986
|
-
* @param
|
|
2987
|
-
* @returns {
|
|
3036
|
+
* @param id - the policy id.
|
|
3037
|
+
* @returns the {@link SdPlatformDeleteResponse}
|
|
2988
3038
|
*/
|
|
2989
3039
|
delete(id) {
|
|
2990
3040
|
return this.__delete(SdPlatformRequestId_1.RequestId.PolicyDelete, id);
|
|
@@ -3024,42 +3074,42 @@ class SdPlatformSavedStateApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3024
3074
|
}
|
|
3025
3075
|
/**
|
|
3026
3076
|
* Gets a saved state by id.
|
|
3027
|
-
* @param
|
|
3028
|
-
* @param {
|
|
3029
|
-
* @returns {
|
|
3077
|
+
* @param id - saved state id.
|
|
3078
|
+
* @param embed the array of {@link SdPlatformSavedStateGetEmbedFields} embeddable fields.
|
|
3079
|
+
* @returns - the {@link SdPlatformGetResponse} with {@see SdPlatformResponseSavedStatePublic} or one of it's derived classes as response.
|
|
3030
3080
|
*/
|
|
3031
3081
|
get(id, embed) {
|
|
3032
3082
|
return super.__get(SdPlatformRequestId_1.RequestId.SavedStateGet, id, embed);
|
|
3033
3083
|
}
|
|
3034
3084
|
/**
|
|
3035
3085
|
* Create a new saved state.
|
|
3036
|
-
* @param { SdPlatformRequestSavedStateCreate
|
|
3037
|
-
* @returns {
|
|
3086
|
+
* @param body {@link SdPlatformRequestSavedStateCreate} create saved state body.
|
|
3087
|
+
* @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseSavedStateOwner} or one of it's derived classes as data.
|
|
3038
3088
|
*/
|
|
3039
3089
|
create(body) {
|
|
3040
3090
|
return super.__post(SdPlatformRequestId_1.RequestId.SavedStateCreate, body);
|
|
3041
3091
|
}
|
|
3042
3092
|
/**
|
|
3043
3093
|
* Patch a saved state.
|
|
3044
|
-
* @param
|
|
3045
|
-
* @param { SdPlatformRequestSavedStatePatch
|
|
3046
|
-
* @returns {
|
|
3094
|
+
* @param id
|
|
3095
|
+
* @param body {@link SdPlatformRequestSavedStatePatch} saved state patch body.
|
|
3096
|
+
* @returns the {@link SdPlatformPatchResponse} with {@link SdPlatformResponseSavedStateOwner} or one of it's derived classes as result.
|
|
3047
3097
|
*/
|
|
3048
3098
|
patch(id, body) {
|
|
3049
3099
|
return super.__patch(SdPlatformRequestId_1.RequestId.SavedStatePatch, id, body);
|
|
3050
3100
|
}
|
|
3051
3101
|
/**
|
|
3052
3102
|
* Delete a saved state.
|
|
3053
|
-
* @param
|
|
3054
|
-
* @returns {
|
|
3103
|
+
* @param id - the id of a saved state.
|
|
3104
|
+
* @returns the {@link SdPlatformDeleteResponse} response.
|
|
3055
3105
|
*/
|
|
3056
3106
|
delete(id) {
|
|
3057
3107
|
return super.__delete(SdPlatformRequestId_1.RequestId.SavedStateDelete, id);
|
|
3058
3108
|
}
|
|
3059
3109
|
/**
|
|
3060
3110
|
* Query saved states.
|
|
3061
|
-
* @param { SdPlatformSavedStateApiQueryParameters
|
|
3062
|
-
* @returns {
|
|
3111
|
+
* @param params {@link SdPlatformSavedStateApiQueryParameters} query parameters.
|
|
3112
|
+
* @returns the {@link SdPlatformQueryResponse} response with {@link SdPlatformResponseSavedStatePublic} or one of it's derived classes as response.
|
|
3063
3113
|
*/
|
|
3064
3114
|
query(params) {
|
|
3065
3115
|
return super.__query(SdPlatformRequestId_1.RequestId.SavedStateQuery, params);
|
|
@@ -3093,16 +3143,16 @@ class SdPlatformSavedStateSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3093
3143
|
}
|
|
3094
3144
|
/**
|
|
3095
3145
|
* Create a saved state sharing relationship
|
|
3096
|
-
* @param body
|
|
3097
|
-
* @returns
|
|
3146
|
+
* @param body {@link SdPlatformResponseSavedStateSharingCreate}
|
|
3147
|
+
* @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseSavedStateSharing} as response.
|
|
3098
3148
|
*/
|
|
3099
3149
|
create(body) {
|
|
3100
3150
|
return super.__post(SdPlatformRequestId_1.RequestId.SavedStateCreate, body);
|
|
3101
3151
|
}
|
|
3102
3152
|
/**
|
|
3103
3153
|
* Create multiple sharings.
|
|
3104
|
-
* @param { SdPlatformRequestSavedStateSharingCreateMultiple
|
|
3105
|
-
* @returns {
|
|
3154
|
+
* @param body {@link SdPlatformRequestSavedStateSharingCreateMultiple}
|
|
3155
|
+
* @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseModelSharing} as data response.
|
|
3106
3156
|
*/
|
|
3107
3157
|
createMultiple(body) {
|
|
3108
3158
|
return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingCreateMultiple, ResourcesApi_1.Action.Post, "saved_state_sharing_multiple", body);
|
|
@@ -3110,7 +3160,7 @@ class SdPlatformSavedStateSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3110
3160
|
/**
|
|
3111
3161
|
* Delete a saved state.
|
|
3112
3162
|
* @param saved_state_sharing_id Id of the saved state sharing relationship to delete.
|
|
3113
|
-
* @returns
|
|
3163
|
+
* @returns the {@link SdPlatformDeleteResponse} as response.
|
|
3114
3164
|
*/
|
|
3115
3165
|
delete(saved_state_sharing_id) {
|
|
3116
3166
|
return super.__delete(SdPlatformRequestId_1.RequestId.SavedStateSharingDelete, saved_state_sharing_id);
|
|
@@ -3119,15 +3169,15 @@ class SdPlatformSavedStateSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3119
3169
|
* Get saved state sharing relationships by saved state id and user id.
|
|
3120
3170
|
* @param saved_state_id - saved state id.
|
|
3121
3171
|
* @param user_id - user id.
|
|
3122
|
-
* @returns
|
|
3172
|
+
* @returns the {@link SdPlatformGetResponse} with array of {@link SdPlatformResponseSavedStateSharing} as data.
|
|
3123
3173
|
*/
|
|
3124
3174
|
getBySavedStateAndUser(saved_state_id, user_id) {
|
|
3125
3175
|
return super.__get(SdPlatformRequestId_1.RequestId.SavedStateSharingGetBySavedStateAndUser, `saved_state/${saved_state_id}/user/${user_id}`);
|
|
3126
3176
|
}
|
|
3127
3177
|
/**
|
|
3128
3178
|
* Query saved state sharing relationships.
|
|
3129
|
-
* @param params
|
|
3130
|
-
* @returns
|
|
3179
|
+
* @param params {@link SdPlatformSavedStateSharingQueryParameters}
|
|
3180
|
+
* @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseSavedStateSharing} as data.
|
|
3131
3181
|
*/
|
|
3132
3182
|
query(query) {
|
|
3133
3183
|
return super.__query(SdPlatformRequestId_1.RequestId.SavedStateSharingQuery, query);
|
|
@@ -3135,8 +3185,8 @@ class SdPlatformSavedStateSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3135
3185
|
/**
|
|
3136
3186
|
* Query saved state sharing relationships by saved state id.
|
|
3137
3187
|
* @param saved_state_id
|
|
3138
|
-
* @param query
|
|
3139
|
-
* @returns
|
|
3188
|
+
* @param query {@link SdPlatformSavedStateSharingQueryParameters}
|
|
3189
|
+
* @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseSavedStateSharing} as data,
|
|
3140
3190
|
*/
|
|
3141
3191
|
queryBySavedState(saved_state_id, query) {
|
|
3142
3192
|
return super.__action(SdPlatformRequestId_1.RequestId.SavedStateSharingQueryBySavedState, ResourcesApi_1.Action.Post, `saved_state/${saved_state_id}/query`, query);
|
|
@@ -3144,8 +3194,8 @@ class SdPlatformSavedStateSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3144
3194
|
/**
|
|
3145
3195
|
* Query saved state sharing relationships by user id.
|
|
3146
3196
|
* @param user_id
|
|
3147
|
-
* @param query
|
|
3148
|
-
* @returns
|
|
3197
|
+
* @param query {@link SdPlatformSavedStateSharingQueryParameters}
|
|
3198
|
+
* @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseSavedStateSharing} as data,
|
|
3149
3199
|
*/
|
|
3150
3200
|
queryByUser(user_id, query) {
|
|
3151
3201
|
return super.__action(SdPlatformRequestId_1.RequestId.SavedStateSharingQueryByUser, ResourcesApi_1.Action.Post, `user/${user_id}/query`, query);
|
|
@@ -3153,7 +3203,7 @@ class SdPlatformSavedStateSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3153
3203
|
/**
|
|
3154
3204
|
* Gets the model sharings grouped by user.
|
|
3155
3205
|
* @param saved_state_id
|
|
3156
|
-
* @returns
|
|
3206
|
+
* @returns the {@link SdPlatformGetResponse} with {@link SdPlatformResponseSavedStateSharing} as data,
|
|
3157
3207
|
*/
|
|
3158
3208
|
getGroupedByUser(saved_state_id) {
|
|
3159
3209
|
return super.__action(SdPlatformRequestId_1.RequestId.SavedStateSharingGroupedByuser, ResourcesApi_1.Action.Get, `saved_state/${saved_state_id}/grouped_by_user`, {});
|
|
@@ -3183,9 +3233,19 @@ class SdPlatformTagApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3183
3233
|
get __resourcePath() {
|
|
3184
3234
|
return "tags";
|
|
3185
3235
|
}
|
|
3236
|
+
/**
|
|
3237
|
+
* Gets the {@link SdPlatformResponseTag} by id.
|
|
3238
|
+
* @param id - the id of a tag.
|
|
3239
|
+
* @returns the {@link SdPlatformGetResponse} with {@link SdPlatformResponseTag} or {@link SdPlatformResponseTagAdmin} as data.
|
|
3240
|
+
*/
|
|
3186
3241
|
get(id) {
|
|
3187
3242
|
return super.__get(SdPlatformRequestId_1.RequestId.TagGet, id);
|
|
3188
3243
|
}
|
|
3244
|
+
/**
|
|
3245
|
+
* Queries the {@link SdPlatformResponseTag} tags.
|
|
3246
|
+
* @param query {@link SdPlatformTagQueryParameters} - query parameters for tags.
|
|
3247
|
+
* @returns collection of {@link SdPlatformResponseTag} based on query parameters.
|
|
3248
|
+
*/
|
|
3189
3249
|
query(query = {}) {
|
|
3190
3250
|
return super.__query(SdPlatformRequestId_1.RequestId.TagQuery, query);
|
|
3191
3251
|
}
|
|
@@ -3212,8 +3272,8 @@ class SdPlatformUserAnalyticsApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3212
3272
|
}
|
|
3213
3273
|
/**
|
|
3214
3274
|
* Query session analytics aggregated per user.
|
|
3215
|
-
* @param body
|
|
3216
|
-
* @returns
|
|
3275
|
+
* @param body the query parameters.
|
|
3276
|
+
* @returns collection of {@link SdPlatformResponseUserModelSessionAnalyticsPerTimestamp} based on query parameters.
|
|
3217
3277
|
*/
|
|
3218
3278
|
query(body = {}) {
|
|
3219
3279
|
return super.__query(SdPlatformRequestId_1.RequestId.UserModelSessionsQuery, body);
|
|
@@ -3263,21 +3323,21 @@ class SdPlatformUserApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3263
3323
|
/**
|
|
3264
3324
|
* Gets the specific user by id
|
|
3265
3325
|
* @param id - user id.
|
|
3266
|
-
* @param embed
|
|
3326
|
+
* @param embed array of {@link SdPlatformUserGetEmbeddableFields} embeddable resources.
|
|
3267
3327
|
*/
|
|
3268
3328
|
get(id, embed) {
|
|
3269
3329
|
return super.__get(SdPlatformRequestId_1.RequestId.UserGet, id, embed);
|
|
3270
3330
|
}
|
|
3271
3331
|
/**
|
|
3272
3332
|
* Register a new user. If successful a registration confirmation email will be sent.
|
|
3273
|
-
* @param body
|
|
3333
|
+
* @param body {@link SdPlatformRequestUserRegister}
|
|
3274
3334
|
*/
|
|
3275
3335
|
register(body) {
|
|
3276
3336
|
return super.__action(SdPlatformRequestId_1.RequestId.UserRegister, ResourcesApi_1.Action.Post, "register", body);
|
|
3277
3337
|
}
|
|
3278
3338
|
/**
|
|
3279
3339
|
* Query users.
|
|
3280
|
-
* @param body
|
|
3340
|
+
* @param body {@link SdPlatformUserQueryParameters}
|
|
3281
3341
|
*/
|
|
3282
3342
|
query(body = {}) {
|
|
3283
3343
|
return super.__query(SdPlatformRequestId_1.RequestId.UserQuery, body);
|
|
@@ -3285,7 +3345,7 @@ class SdPlatformUserApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3285
3345
|
/**
|
|
3286
3346
|
* Patch a user.
|
|
3287
3347
|
* @param id - the id of a user
|
|
3288
|
-
* @param body
|
|
3348
|
+
* @param body {@link SdPlatformRequestUserPatch} properties to patch
|
|
3289
3349
|
*/
|
|
3290
3350
|
// note - think about whether or not admin user resource should be default ?
|
|
3291
3351
|
patch(id, body) {
|
|
@@ -3320,24 +3380,24 @@ class SdPlatformUserApi extends ResourcesApi_1.ResourcesApi {
|
|
|
3320
3380
|
}
|
|
3321
3381
|
/**
|
|
3322
3382
|
* Change password using token
|
|
3323
|
-
* @param body
|
|
3383
|
+
* @param body {@see SdPlatformRequestUserPasswordResetConfirm}
|
|
3324
3384
|
*/
|
|
3325
3385
|
passwordResetConfirm(body) {
|
|
3326
3386
|
return super.__action(SdPlatformRequestId_1.RequestId.PasswordResetConfirm, ResourcesApi_1.Action.Post, 'password_reset_confirm', body);
|
|
3327
3387
|
}
|
|
3328
3388
|
/**
|
|
3329
3389
|
* Returns an array of data about authorized client applications and their refresh tokens.
|
|
3330
|
-
* @param
|
|
3331
|
-
* @returns {
|
|
3390
|
+
* @param user_id
|
|
3391
|
+
* @returns the {@link SdPlatformGetResponse} with array of {@link SdPlatformResponseUserRefreshToken} as data
|
|
3332
3392
|
*/
|
|
3333
3393
|
getUserRefreshTokens(user_id) {
|
|
3334
3394
|
return super.__action(SdPlatformRequestId_1.RequestId.UserRefreshToken, ResourcesApi_1.Action.Get, `users/${user_id}/apiclients`, {});
|
|
3335
3395
|
}
|
|
3336
3396
|
/**
|
|
3337
3397
|
* Delete refresh token.
|
|
3338
|
-
* @param
|
|
3339
|
-
* @param
|
|
3340
|
-
* @returns {
|
|
3398
|
+
* @param user_id
|
|
3399
|
+
* @param refresh_token_id
|
|
3400
|
+
* @returns the {@link SdPlatformDeleteResponse} response.
|
|
3341
3401
|
*/
|
|
3342
3402
|
deleteRefreshToken(user_id, refresh_token_id) {
|
|
3343
3403
|
return super.__action(SdPlatformRequestId_1.RequestId.UserDeleteRefreshToken, ResourcesApi_1.Action.Delete, `users/${user_id}/apiclients/${refresh_token_id}`, {});
|
|
@@ -3381,8 +3441,8 @@ class SdPlatformWebhookApi {
|
|
|
3381
3441
|
}
|
|
3382
3442
|
/**
|
|
3383
3443
|
* Webhook which notifies the platform of chargebee events.
|
|
3384
|
-
* @param auth
|
|
3385
|
-
* @param body
|
|
3444
|
+
* @param auth {@link SdPlatformWebhookBasicAuth}
|
|
3445
|
+
* @param body {@link SdPlatformRequestWebhookChargebeeEvent}
|
|
3386
3446
|
* @returns
|
|
3387
3447
|
*/
|
|
3388
3448
|
chargebeeEvent(auth, body) {
|
|
@@ -3393,8 +3453,8 @@ class SdPlatformWebhookApi {
|
|
|
3393
3453
|
}
|
|
3394
3454
|
/**
|
|
3395
3455
|
* Model message webhook call - send a message to the owner of a model.
|
|
3396
|
-
* @param auth
|
|
3397
|
-
* @param body
|
|
3456
|
+
* @param auth {@link SdPlatformWebhookTokenAuth}
|
|
3457
|
+
* @param body {@link SdPlatformRequestWebhookModelMessage}
|
|
3398
3458
|
* @returns
|
|
3399
3459
|
*/
|
|
3400
3460
|
modelMessage(auth, body) {
|
|
@@ -3405,8 +3465,8 @@ class SdPlatformWebhookApi {
|
|
|
3405
3465
|
}
|
|
3406
3466
|
/**
|
|
3407
3467
|
* Notification webhook call - create a notification related to a model.
|
|
3408
|
-
* @param auth
|
|
3409
|
-
* @param body
|
|
3468
|
+
* @param auth {@link SdPlatformWebhookTokenAuth}
|
|
3469
|
+
* @param body {@link SdPlatformRequestWebhookNotification}
|
|
3410
3470
|
* @returns
|
|
3411
3471
|
*/
|
|
3412
3472
|
notification(auth, body) {
|
|
@@ -8286,16 +8346,16 @@ class SdPlatformDocumentApi extends ResourcesApi_1.ResourcesApi {
|
|
|
8286
8346
|
}
|
|
8287
8347
|
/**
|
|
8288
8348
|
* Create a document.
|
|
8289
|
-
* @param { SdPlatformRequestDocumentCreate } body
|
|
8290
|
-
* @returns {
|
|
8349
|
+
* @param body - {@link SdPlatformRequestDocumentCreate } body
|
|
8350
|
+
* @returns - {@link SdPlatformPostResponse} with {@link SdPlatformResponseDomainAdmin} data
|
|
8291
8351
|
*/
|
|
8292
8352
|
create(body) {
|
|
8293
8353
|
return super.__post(SdPlatformRequestId_1.RequestId.DocumentCreate, body);
|
|
8294
8354
|
}
|
|
8295
8355
|
/**
|
|
8296
8356
|
* Query documents.
|
|
8297
|
-
* @param { SdPlatformDocumentQueryParameters
|
|
8298
|
-
* @returns {
|
|
8357
|
+
* @param query - {@link SdPlatformDocumentQueryParameters} query parameters.
|
|
8358
|
+
* @returns - the {@link SdPlatformQueryResponse} query response with array of {@link SdPlatformResponseDocument} as data.
|
|
8299
8359
|
*/
|
|
8300
8360
|
query(query = {}) {
|
|
8301
8361
|
return super.__query(SdPlatformRequestId_1.RequestId.DocumentQuery, query);
|
|
@@ -8309,7 +8369,7 @@ class SdPlatformDocumentApi extends ResourcesApi_1.ResourcesApi {
|
|
|
8309
8369
|
}
|
|
8310
8370
|
/**
|
|
8311
8371
|
* Get a list of documents which are relevant to the requesting user.
|
|
8312
|
-
* @param
|
|
8372
|
+
* @param query_parameters - optional, {@link SdPlatformDocumentGetQueryParameters}
|
|
8313
8373
|
* @returns { Promise<SdPlatformGetResponse<Array<SdPlatformResponseDocumentUser>>> }
|
|
8314
8374
|
*/
|
|
8315
8375
|
list(query_parameters) {
|
|
@@ -8378,8 +8438,8 @@ class SdPlatformOrganizationAnalyticsApi extends ResourcesApi_1.ResourcesApi {
|
|
|
8378
8438
|
}
|
|
8379
8439
|
/**
|
|
8380
8440
|
* Query session analytics aggregated per user.
|
|
8381
|
-
* @param { SdPlatformQueryParameters
|
|
8382
|
-
* @returns {
|
|
8441
|
+
* @param body - {@link SdPlatformQueryParameters} query body.
|
|
8442
|
+
* @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseOrganizationModelSessionAnalyticsPerTimestamp} as query data response.
|
|
8383
8443
|
*/
|
|
8384
8444
|
query(body = {}) {
|
|
8385
8445
|
return super.__query(SdPlatformRequestId_1.RequestId.OrganizationModelSessionsQuery, body);
|
|
@@ -8462,25 +8522,49 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8462
8522
|
exports.SdPlatformApiClientsApi = exports.SdPlatformApiClientsQueryEmbeddableFields = void 0;
|
|
8463
8523
|
const SdPlatformRequestId_1 = __webpack_require__(56);
|
|
8464
8524
|
const ResourcesApi_1 = __webpack_require__(61);
|
|
8525
|
+
/**
|
|
8526
|
+
* The embeddable fields for query parameter.
|
|
8527
|
+
*/
|
|
8465
8528
|
var SdPlatformApiClientsQueryEmbeddableFields;
|
|
8466
8529
|
(function (SdPlatformApiClientsQueryEmbeddableFields) {
|
|
8467
8530
|
})(SdPlatformApiClientsQueryEmbeddableFields = exports.SdPlatformApiClientsQueryEmbeddableFields || (exports.SdPlatformApiClientsQueryEmbeddableFields = {}));
|
|
8468
8531
|
/**
|
|
8469
|
-
*
|
|
8532
|
+
* API client operations (API clients of the platform backend).
|
|
8470
8533
|
*/
|
|
8471
8534
|
class SdPlatformApiClientsApi extends ResourcesApi_1.ResourcesApi {
|
|
8472
8535
|
get __resourcePath() {
|
|
8473
8536
|
return "apiclients";
|
|
8474
8537
|
}
|
|
8538
|
+
/**
|
|
8539
|
+
* Query the api clients.
|
|
8540
|
+
* @param query - {@link SdPlatformApiClientsQueryParameters} optional query parameters
|
|
8541
|
+
* @returns query result
|
|
8542
|
+
*/
|
|
8475
8543
|
query(query = {}) {
|
|
8476
8544
|
return super.__query(SdPlatformRequestId_1.RequestId.ApiClientQuery, query);
|
|
8477
8545
|
}
|
|
8546
|
+
/**
|
|
8547
|
+
* Create a new api client.
|
|
8548
|
+
* @param body - {@link SdPlatformRequestApiClientCreate} body or parameters for create request.
|
|
8549
|
+
* @returns returns created api client response.
|
|
8550
|
+
*/
|
|
8478
8551
|
create(body) {
|
|
8479
8552
|
return super.__post(SdPlatformRequestId_1.RequestId.ApiClientCreate, body);
|
|
8480
8553
|
}
|
|
8554
|
+
/**
|
|
8555
|
+
* Patch an api client
|
|
8556
|
+
* @param id
|
|
8557
|
+
* @param body - {@link SdPlatformRequestApiClientPatch} body or patch parameters.
|
|
8558
|
+
* @returns patch response.
|
|
8559
|
+
*/
|
|
8481
8560
|
patch(id, body) {
|
|
8482
8561
|
return super.__patch(SdPlatformRequestId_1.RequestId.ApiClientPatch, id, body);
|
|
8483
8562
|
}
|
|
8563
|
+
/**
|
|
8564
|
+
* Delete an api client.
|
|
8565
|
+
* @param id
|
|
8566
|
+
* @returns delete response.
|
|
8567
|
+
*/
|
|
8484
8568
|
delete(id) {
|
|
8485
8569
|
return super.__delete(SdPlatformRequestId_1.RequestId.ApiClientDelete, id);
|
|
8486
8570
|
}
|