@shapediver/sdk.platform-api-sdk-v1 2.9.12 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SdPlatformErrors.d.ts +58 -1
- package/dist/SdPlatformErrors.d.ts.map +1 -1
- package/dist/api/SdPlatformRequestId.d.ts +2 -0
- package/dist/api/SdPlatformRequestId.d.ts.map +1 -1
- package/dist/api/SdPlatformSdkErrorMapping.d.ts +0 -22
- package/dist/api/SdPlatformSdkErrorMapping.d.ts.map +1 -1
- package/dist/bundle.js +124 -6
- package/dist/bundle.node.js +124 -6
- package/dist/resources/SdPlatformImageApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformModelSharingApi.d.ts +7 -2
- package/dist/resources/SdPlatformModelSharingApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformNotificationApi.d.ts +1 -0
- package/dist/resources/SdPlatformNotificationApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformOrganizationApi.d.ts +2 -1
- package/dist/resources/SdPlatformOrganizationApi.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -18,6 +18,11 @@ export declare abstract class SdPlatformResponseError extends SdPlatformError {
|
|
|
18
18
|
readonly http_status_code: number;
|
|
19
19
|
constructor(message: string, http_status_code: number);
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* The server error which can just contain message and status code.
|
|
23
|
+
*/
|
|
24
|
+
export declare class SdPlatformServerResponseError extends SdPlatformResponseError {
|
|
25
|
+
}
|
|
21
26
|
/**
|
|
22
27
|
* Resource response error
|
|
23
28
|
*/
|
|
@@ -26,10 +31,28 @@ export declare class SdPlatformResourceResponseError extends SdPlatformResponseE
|
|
|
26
31
|
readonly error_description: string;
|
|
27
32
|
readonly error_uri?: string | undefined;
|
|
28
33
|
readonly code?: string | number | undefined;
|
|
34
|
+
constructor(message: string, http_status_code: number, error: string, error_description: string, error_uri?: string | undefined, code?: string | number | undefined);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Not found error, returned with 404 status.
|
|
38
|
+
*/
|
|
39
|
+
export declare class SdPlatformNotFoundResponseError extends SdPlatformResourceResponseError {
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Forbidden error, returned with 403 status.
|
|
43
|
+
*/
|
|
44
|
+
export declare class SdPlatformForbiddenResponseError extends SdPlatformResourceResponseError {
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Unauthorized error, returned with 401 status.
|
|
48
|
+
*/
|
|
49
|
+
export declare class SdPlatformUnauthorizedResponseError extends SdPlatformResourceResponseError {
|
|
50
|
+
}
|
|
51
|
+
export declare class SdPlatformValidationResponseError extends SdPlatformResourceResponseError {
|
|
29
52
|
readonly fields?: {
|
|
30
53
|
[key: string]: string[];
|
|
31
54
|
} | undefined;
|
|
32
|
-
constructor(message: string, http_status_code: number, error: string, error_description: string, error_uri?: string
|
|
55
|
+
constructor(message: string, http_status_code: number, error: string, error_description: string, error_uri?: string, code?: number | string, fields?: {
|
|
33
56
|
[key: string]: string[];
|
|
34
57
|
} | undefined);
|
|
35
58
|
}
|
|
@@ -75,4 +98,38 @@ export declare class SdPlatformOAuthResponseError extends SdPlatformResponseErro
|
|
|
75
98
|
information about the error */
|
|
76
99
|
error_uri?: string | undefined);
|
|
77
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Authentication response error.
|
|
103
|
+
* Follows principles of OAuth 2.0
|
|
104
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
105
|
+
*/
|
|
106
|
+
export declare class SdPlatformInvalidRequestOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Authentication response error.
|
|
110
|
+
* Follows principles of OAuth 2.0
|
|
111
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
112
|
+
*/
|
|
113
|
+
export declare class SdPlatformInvalidClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Authentication response error.
|
|
117
|
+
* Follows principles of OAuth 2.0
|
|
118
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
119
|
+
*/
|
|
120
|
+
export declare class SdPlatformInvalidGrantOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Authentication response error.
|
|
124
|
+
* Follows principles of OAuth 2.0
|
|
125
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
126
|
+
*/
|
|
127
|
+
export declare class SdPlatformUnauthorizedClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Authentication response error.
|
|
131
|
+
* Follows principles of OAuth 2.0
|
|
132
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
133
|
+
*/ export declare class SdPlatformUnsupportedGrantTypeClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
134
|
+
}
|
|
78
135
|
//# sourceMappingURL=SdPlatformErrors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdPlatformErrors.d.ts","sourceRoot":"","sources":["../src/SdPlatformErrors.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"SdPlatformErrors.d.ts","sourceRoot":"","sources":["../src/SdPlatformErrors.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK;gBAG1B,OAAO,EAAE,MAAM;CAK9B;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,eAAe;aAKnC,IAAI,EAAE,MAAM;gBAD5B,OAAO,EAAE,MAAM,EACC,IAAI,EAAE,MAAM;CAMnC;AAGD;;GAEG;AACH,8BAAsB,uBAAwB,SAAQ,eAAe;aAK7C,g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H,qBAAa,0CAA2C,SAAQ,4BAA4B;CAG3F;AAED;;;;GAIG;AACH,qBAAa,yCAA0C,SAAQ,4BAA4B;CAG1F;AAGD;;;;GAIG;AACH,qBAAa,wCAAyC,SAAQ,4BAA4B;CAGzF;AAED;;;;GAIG;AACH,qBAAa,8CAA+C,SAAQ,4BAA4B;CAG/F;AAED;;;;GAIG,CAAA,qBAAa,sDAAuD,SAAQ,4BAA4B;CAG1G"}
|
|
@@ -75,6 +75,7 @@ export declare enum RequestId {
|
|
|
75
75
|
OrganizationInvitationAccept = "organization_invitation_accept",
|
|
76
76
|
OrganizationInvitationDeny = "organization_invitation_deny",
|
|
77
77
|
OrganizationPatchMemberRole = "organization_patch_member_role",
|
|
78
|
+
NotificationGet = "notification_get",
|
|
78
79
|
NotificationQuery = "notification_query",
|
|
79
80
|
NotificationCreate = "notification_create",
|
|
80
81
|
NotificationPatch = "notification_patch",
|
|
@@ -90,6 +91,7 @@ export declare enum RequestId {
|
|
|
90
91
|
ChargebeeQueryPlan = "chargebee_query_plan",
|
|
91
92
|
HttpLogQuery = "http_log_query",
|
|
92
93
|
ModelSharingCreate = "model_sharing_create",
|
|
94
|
+
ModelSharingCreateMultiple = "model_sharing_create_multiple",
|
|
93
95
|
ModelSharingQuery = "model_sharing_query",
|
|
94
96
|
ModelSharingQueryByModel = "model_sharing_query_by_model",
|
|
95
97
|
ModelSharingQueryByUser = "model_sharing_query_by_user",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdPlatformRequestId.d.ts","sourceRoot":"","sources":["../../src/api/SdPlatformRequestId.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IAEjB;;OAEG;IACH,aAAa,mBAAmB;IAChC,YAAY,kBAAkB;IAC9B,iBAAiB,uBAAuB;IACxC,MAAM,WAAW;IAEjB;;OAEG;IACH,WAAW,kBAAkB;IAC7B,aAAa,oBAAoB;IACjC,cAAc,qBAAqB;IACnC,aAAa,oBAAoB;IACj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BAAoB;IAClC,YAAY,kBAAkB;IAC9B,gBAAgB,sBAAsB;IACtC,YAAY,kBAAkB;IAC9B,cAAc,oBAAoB;IAClC,uBAAuB,8BAA8B;IACrD,mBAAmB,0BAA0B;CAChD"}
|
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
import { AxiosError } from "axios";
|
|
2
2
|
import { SdPlatformError } from "../SdPlatformErrors";
|
|
3
|
-
/**
|
|
4
|
-
* The OAuth error response, returned by server when oauth request fails
|
|
5
|
-
*/
|
|
6
|
-
export interface OAuthErrorResponse {
|
|
7
|
-
readonly error: string;
|
|
8
|
-
readonly error_description: string;
|
|
9
|
-
readonly error_uri?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* The Resource response error, returned by server when resource request fails.
|
|
13
|
-
*/
|
|
14
|
-
export interface ResourceResponseError {
|
|
15
|
-
readonly error: {
|
|
16
|
-
readonly message: string;
|
|
17
|
-
readonly description: string;
|
|
18
|
-
readonly href?: string;
|
|
19
|
-
readonly code: number;
|
|
20
|
-
readonly fields?: {
|
|
21
|
-
[key: string]: string[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
3
|
/**
|
|
26
4
|
* Maps the given error into a ShapeDiver API response error object.
|
|
27
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdPlatformSdkErrorMapping.d.ts","sourceRoot":"","sources":["../../src/api/SdPlatformSdkErrorMapping.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"SdPlatformSdkErrorMapping.d.ts","sourceRoot":"","sources":["../../src/api/SdPlatformSdkErrorMapping.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;AACxD,OACA,EACI,eAAe,EAclB,MAAM,qBAAqB,CAAA;AAwD5B;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU,GAAG,eAAe,CA6IxE"}
|
package/dist/bundle.js
CHANGED
|
@@ -342,6 +342,7 @@ var SdPlatformNotificationType;
|
|
|
342
342
|
SdPlatformNotificationType["SavedStateDeleted"] = "saved-state-deleted";
|
|
343
343
|
SdPlatformNotificationType["OrganizationInvitation"] = "organization-invitation";
|
|
344
344
|
SdPlatformNotificationType["OrganizationInvitationAccept"] = "organization-invitation-accept";
|
|
345
|
+
SdPlatformNotificationType["OrganizationInvitationBlocked"] = "organization-invitation-blocked";
|
|
345
346
|
SdPlatformNotificationType["OrganizationInvitationDeny"] = "organization-invitation-deny";
|
|
346
347
|
SdPlatformNotificationType["PluginUpdate"] = "plugin-update";
|
|
347
348
|
SdPlatformNotificationType["OrganizationUserSuspended"] = "organization-user-suspended";
|
|
@@ -1347,6 +1348,7 @@ var RequestId;
|
|
|
1347
1348
|
RequestId["OrganizationInvitationAccept"] = "organization_invitation_accept";
|
|
1348
1349
|
RequestId["OrganizationInvitationDeny"] = "organization_invitation_deny";
|
|
1349
1350
|
RequestId["OrganizationPatchMemberRole"] = "organization_patch_member_role";
|
|
1351
|
+
RequestId["NotificationGet"] = "notification_get";
|
|
1350
1352
|
RequestId["NotificationQuery"] = "notification_query";
|
|
1351
1353
|
RequestId["NotificationCreate"] = "notification_create";
|
|
1352
1354
|
RequestId["NotificationPatch"] = "notification_patch";
|
|
@@ -1362,6 +1364,7 @@ var RequestId;
|
|
|
1362
1364
|
RequestId["ChargebeeQueryPlan"] = "chargebee_query_plan";
|
|
1363
1365
|
RequestId["HttpLogQuery"] = "http_log_query";
|
|
1364
1366
|
RequestId["ModelSharingCreate"] = "model_sharing_create";
|
|
1367
|
+
RequestId["ModelSharingCreateMultiple"] = "model_sharing_create_multiple";
|
|
1365
1368
|
RequestId["ModelSharingQuery"] = "model_sharing_query";
|
|
1366
1369
|
RequestId["ModelSharingQueryByModel"] = "model_sharing_query_by_model";
|
|
1367
1370
|
RequestId["ModelSharingQueryByUser"] = "model_sharing_query_by_user";
|
|
@@ -1620,7 +1623,7 @@ exports.SdPlatformAuthServiceApi = SdPlatformAuthServiceApi;
|
|
|
1620
1623
|
"use strict";
|
|
1621
1624
|
|
|
1622
1625
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1623
|
-
exports.SdPlatformOAuthResponseError = exports.SdPlatformResourceResponseError = exports.SdPlatformResponseError = exports.SdPlatformRequestError = exports.SdPlatformError = void 0;
|
|
1626
|
+
exports.SdPlatformUnsupportedGrantTypeClientOAuthResponseError = exports.SdPlatformUnauthorizedClientOAuthResponseError = exports.SdPlatformInvalidGrantOAuthResponseError = exports.SdPlatformInvalidClientOAuthResponseError = exports.SdPlatformInvalidRequestOAuthResponseError = exports.SdPlatformOAuthResponseError = exports.SdPlatformValidationResponseError = exports.SdPlatformUnauthorizedResponseError = exports.SdPlatformForbiddenResponseError = exports.SdPlatformNotFoundResponseError = exports.SdPlatformResourceResponseError = exports.SdPlatformServerResponseError = exports.SdPlatformResponseError = exports.SdPlatformRequestError = exports.SdPlatformError = void 0;
|
|
1624
1627
|
/**
|
|
1625
1628
|
* Generic error
|
|
1626
1629
|
*/
|
|
@@ -1650,20 +1653,50 @@ class SdPlatformResponseError extends SdPlatformError {
|
|
|
1650
1653
|
}
|
|
1651
1654
|
}
|
|
1652
1655
|
exports.SdPlatformResponseError = SdPlatformResponseError;
|
|
1656
|
+
/**
|
|
1657
|
+
* The server error which can just contain message and status code.
|
|
1658
|
+
*/
|
|
1659
|
+
class SdPlatformServerResponseError extends SdPlatformResponseError {
|
|
1660
|
+
}
|
|
1661
|
+
exports.SdPlatformServerResponseError = SdPlatformServerResponseError;
|
|
1653
1662
|
/**
|
|
1654
1663
|
* Resource response error
|
|
1655
1664
|
*/
|
|
1656
1665
|
class SdPlatformResourceResponseError extends SdPlatformResponseError {
|
|
1657
|
-
constructor(message, http_status_code, error, error_description, error_uri, code
|
|
1666
|
+
constructor(message, http_status_code, error, error_description, error_uri, code) {
|
|
1658
1667
|
super(message, http_status_code);
|
|
1659
1668
|
this.error = error;
|
|
1660
1669
|
this.error_description = error_description;
|
|
1661
1670
|
this.error_uri = error_uri;
|
|
1662
1671
|
this.code = code;
|
|
1663
|
-
this.fields = fields;
|
|
1664
1672
|
}
|
|
1665
1673
|
}
|
|
1666
1674
|
exports.SdPlatformResourceResponseError = SdPlatformResourceResponseError;
|
|
1675
|
+
/**
|
|
1676
|
+
* Not found error, returned with 404 status.
|
|
1677
|
+
*/
|
|
1678
|
+
class SdPlatformNotFoundResponseError extends SdPlatformResourceResponseError {
|
|
1679
|
+
}
|
|
1680
|
+
exports.SdPlatformNotFoundResponseError = SdPlatformNotFoundResponseError;
|
|
1681
|
+
/**
|
|
1682
|
+
* Forbidden error, returned with 403 status.
|
|
1683
|
+
*/
|
|
1684
|
+
class SdPlatformForbiddenResponseError extends SdPlatformResourceResponseError {
|
|
1685
|
+
}
|
|
1686
|
+
exports.SdPlatformForbiddenResponseError = SdPlatformForbiddenResponseError;
|
|
1687
|
+
/**
|
|
1688
|
+
* Unauthorized error, returned with 401 status.
|
|
1689
|
+
*/
|
|
1690
|
+
class SdPlatformUnauthorizedResponseError extends SdPlatformResourceResponseError {
|
|
1691
|
+
}
|
|
1692
|
+
exports.SdPlatformUnauthorizedResponseError = SdPlatformUnauthorizedResponseError;
|
|
1693
|
+
class SdPlatformValidationResponseError extends SdPlatformResourceResponseError {
|
|
1694
|
+
constructor(message, http_status_code, error, error_description, error_uri, code, fields) {
|
|
1695
|
+
super(message, http_status_code, error, error_description, error_uri, code);
|
|
1696
|
+
this.fields = fields;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
exports.SdPlatformValidationResponseError = SdPlatformValidationResponseError;
|
|
1667
1700
|
/**
|
|
1668
1701
|
* Authentication response error.
|
|
1669
1702
|
* Follows principles of OAuth 2.0
|
|
@@ -1695,6 +1728,45 @@ class SdPlatformOAuthResponseError extends SdPlatformResponseError {
|
|
|
1695
1728
|
}
|
|
1696
1729
|
}
|
|
1697
1730
|
exports.SdPlatformOAuthResponseError = SdPlatformOAuthResponseError;
|
|
1731
|
+
/**
|
|
1732
|
+
* Authentication response error.
|
|
1733
|
+
* Follows principles of OAuth 2.0
|
|
1734
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
1735
|
+
*/
|
|
1736
|
+
class SdPlatformInvalidRequestOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
1737
|
+
}
|
|
1738
|
+
exports.SdPlatformInvalidRequestOAuthResponseError = SdPlatformInvalidRequestOAuthResponseError;
|
|
1739
|
+
/**
|
|
1740
|
+
* Authentication response error.
|
|
1741
|
+
* Follows principles of OAuth 2.0
|
|
1742
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
1743
|
+
*/
|
|
1744
|
+
class SdPlatformInvalidClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
1745
|
+
}
|
|
1746
|
+
exports.SdPlatformInvalidClientOAuthResponseError = SdPlatformInvalidClientOAuthResponseError;
|
|
1747
|
+
/**
|
|
1748
|
+
* Authentication response error.
|
|
1749
|
+
* Follows principles of OAuth 2.0
|
|
1750
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
1751
|
+
*/
|
|
1752
|
+
class SdPlatformInvalidGrantOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
1753
|
+
}
|
|
1754
|
+
exports.SdPlatformInvalidGrantOAuthResponseError = SdPlatformInvalidGrantOAuthResponseError;
|
|
1755
|
+
/**
|
|
1756
|
+
* Authentication response error.
|
|
1757
|
+
* Follows principles of OAuth 2.0
|
|
1758
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
1759
|
+
*/
|
|
1760
|
+
class SdPlatformUnauthorizedClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
1761
|
+
}
|
|
1762
|
+
exports.SdPlatformUnauthorizedClientOAuthResponseError = SdPlatformUnauthorizedClientOAuthResponseError;
|
|
1763
|
+
/**
|
|
1764
|
+
* Authentication response error.
|
|
1765
|
+
* Follows principles of OAuth 2.0
|
|
1766
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
1767
|
+
*/ class SdPlatformUnsupportedGrantTypeClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
1768
|
+
}
|
|
1769
|
+
exports.SdPlatformUnsupportedGrantTypeClientOAuthResponseError = SdPlatformUnsupportedGrantTypeClientOAuthResponseError;
|
|
1698
1770
|
|
|
1699
1771
|
|
|
1700
1772
|
/***/ }),
|
|
@@ -2316,6 +2388,14 @@ class SdPlatformModelSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2316
2388
|
create(body) {
|
|
2317
2389
|
return super.__post(SdPlatformRequestId_1.RequestId.ModelSharingCreate, body);
|
|
2318
2390
|
}
|
|
2391
|
+
/**
|
|
2392
|
+
* Create multiple sharings.
|
|
2393
|
+
* @param { SdPlatformRequestModelSharingCreateMultiple } body
|
|
2394
|
+
* @returns { Promise<SdPlatformPostResponse<Array<SdPlatformResponseModelSharing>>> }
|
|
2395
|
+
*/
|
|
2396
|
+
createMultiple(body) {
|
|
2397
|
+
return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingCreateMultiple, ResourcesApi_1.Action.Post, "model_sharing_multiple", body);
|
|
2398
|
+
}
|
|
2319
2399
|
/**
|
|
2320
2400
|
* Query model sharing relationships.
|
|
2321
2401
|
* @param query
|
|
@@ -2510,6 +2590,9 @@ class SdPlatformNotificationApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2510
2590
|
summary(embed) {
|
|
2511
2591
|
return super.__get(SdPlatformRequestId_1.RequestId.NotificationSummary, 'summary', embed);
|
|
2512
2592
|
}
|
|
2593
|
+
get(id) {
|
|
2594
|
+
return super.__get(SdPlatformRequestId_1.RequestId.NotificationGet, id);
|
|
2595
|
+
}
|
|
2513
2596
|
/**
|
|
2514
2597
|
* Marks all notifications of signed in user as read.
|
|
2515
2598
|
* @returns { Promise<SdPlatformPostResponse<void>> }
|
|
@@ -2540,6 +2623,7 @@ var SdPlatformOrganizationEmbeddableFields;
|
|
|
2540
2623
|
SdPlatformOrganizationEmbeddableFields["ChargebeeSubscription"] = "chargebee_subscription";
|
|
2541
2624
|
SdPlatformOrganizationEmbeddableFields["ChargebeePlan"] = "chargebee_plan";
|
|
2542
2625
|
SdPlatformOrganizationEmbeddableFields["ChargebeeAddons"] = "chargebee_addons";
|
|
2626
|
+
SdPlatformOrganizationEmbeddableFields["OpenIdProvider"] = "openid_provider";
|
|
2543
2627
|
})(SdPlatformOrganizationEmbeddableFields = exports.SdPlatformOrganizationEmbeddableFields || (exports.SdPlatformOrganizationEmbeddableFields = {}));
|
|
2544
2628
|
/**
|
|
2545
2629
|
* Operations for organizations.
|
|
@@ -3518,10 +3602,14 @@ function isOAuthResponseError(response) {
|
|
|
3518
3602
|
function isResourceResponseError(response) {
|
|
3519
3603
|
return ("error" in response) && ("message" in response.error);
|
|
3520
3604
|
}
|
|
3605
|
+
function isValidationError(response) {
|
|
3606
|
+
return isResourceResponseError(response) && ("fields" in response.error);
|
|
3607
|
+
}
|
|
3521
3608
|
/**
|
|
3522
3609
|
* Maps the given error into a ShapeDiver API response error object.
|
|
3523
3610
|
*/
|
|
3524
3611
|
function mapToApiError(error) {
|
|
3612
|
+
var _a, _b;
|
|
3525
3613
|
// Handle basic non-axios errors
|
|
3526
3614
|
if (!axios_1.default.isAxiosError(error))
|
|
3527
3615
|
return new SdPlatformErrors_1.SdPlatformError(error.message);
|
|
@@ -3529,11 +3617,41 @@ function mapToApiError(error) {
|
|
|
3529
3617
|
if (axiosError.response) {
|
|
3530
3618
|
// Request was made and server responded with 4xx or 5xx
|
|
3531
3619
|
let data = axiosError.response.data;
|
|
3532
|
-
if (
|
|
3620
|
+
if (axiosError.response.status >= 500) {
|
|
3621
|
+
return new SdPlatformErrors_1.SdPlatformServerResponseError((_b = (_a = data === null || data === void 0 ? void 0 : data.error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : "Server Error.", axiosError.response.status);
|
|
3622
|
+
}
|
|
3623
|
+
else if (data && isOAuthResponseError(data)) {
|
|
3624
|
+
if (data.error == "invalid_client") {
|
|
3625
|
+
return new SdPlatformErrors_1.SdPlatformInvalidClientOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3626
|
+
}
|
|
3627
|
+
else if (data.error == "invalid_request") {
|
|
3628
|
+
return new SdPlatformErrors_1.SdPlatformInvalidRequestOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3629
|
+
}
|
|
3630
|
+
else if (data.error == "invalid_grant") {
|
|
3631
|
+
return new SdPlatformErrors_1.SdPlatformInvalidGrantOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3632
|
+
}
|
|
3633
|
+
else if (data.error == "unauthorized_client") {
|
|
3634
|
+
return new SdPlatformErrors_1.SdPlatformUnauthorizedClientOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3635
|
+
}
|
|
3636
|
+
else if (data.error == "unsupported_grant_type") {
|
|
3637
|
+
return new SdPlatformErrors_1.SdPlatformUnsupportedGrantTypeClientOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3638
|
+
}
|
|
3533
3639
|
return new SdPlatformErrors_1.SdPlatformOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3534
3640
|
}
|
|
3535
|
-
else if (isResourceResponseError(data)) {
|
|
3536
|
-
|
|
3641
|
+
else if (data && isResourceResponseError(data)) {
|
|
3642
|
+
if (isValidationError(data)) {
|
|
3643
|
+
return new SdPlatformErrors_1.SdPlatformValidationResponseError(`${data.error.message}. ${data.error.description}.`, axiosError.response.status, data.error.message, data.error.description, data.error.href, data.error.code, data.error.fields);
|
|
3644
|
+
}
|
|
3645
|
+
switch (axiosError.response.status) {
|
|
3646
|
+
case 404:
|
|
3647
|
+
return new SdPlatformErrors_1.SdPlatformNotFoundResponseError(`${data.error.message}. ${data.error.description}.`, axiosError.response.status, data.error.message, data.error.description, data.error.href, data.error.code);
|
|
3648
|
+
case 403:
|
|
3649
|
+
return new SdPlatformErrors_1.SdPlatformForbiddenResponseError(`${data.error.message}. ${data.error.description}.`, axiosError.response.status, data.error.message, data.error.description, data.error.href, data.error.code);
|
|
3650
|
+
case 401:
|
|
3651
|
+
return new SdPlatformErrors_1.SdPlatformUnauthorizedResponseError(`${data.error.message}. ${data.error.description}.`, axiosError.response.status, data.error.message, data.error.description, data.error.href, data.error.code);
|
|
3652
|
+
default:
|
|
3653
|
+
return new SdPlatformErrors_1.SdPlatformResourceResponseError(`${data.error.message}. ${data.error.description}.`, axiosError.response.status, data.error.message, data.error.description, data.error.href, data.error.code);
|
|
3654
|
+
}
|
|
3537
3655
|
}
|
|
3538
3656
|
else {
|
|
3539
3657
|
// Response was made but an unknown error object was received
|
package/dist/bundle.node.js
CHANGED
|
@@ -342,6 +342,7 @@ var SdPlatformNotificationType;
|
|
|
342
342
|
SdPlatformNotificationType["SavedStateDeleted"] = "saved-state-deleted";
|
|
343
343
|
SdPlatformNotificationType["OrganizationInvitation"] = "organization-invitation";
|
|
344
344
|
SdPlatformNotificationType["OrganizationInvitationAccept"] = "organization-invitation-accept";
|
|
345
|
+
SdPlatformNotificationType["OrganizationInvitationBlocked"] = "organization-invitation-blocked";
|
|
345
346
|
SdPlatformNotificationType["OrganizationInvitationDeny"] = "organization-invitation-deny";
|
|
346
347
|
SdPlatformNotificationType["PluginUpdate"] = "plugin-update";
|
|
347
348
|
SdPlatformNotificationType["OrganizationUserSuspended"] = "organization-user-suspended";
|
|
@@ -1347,6 +1348,7 @@ var RequestId;
|
|
|
1347
1348
|
RequestId["OrganizationInvitationAccept"] = "organization_invitation_accept";
|
|
1348
1349
|
RequestId["OrganizationInvitationDeny"] = "organization_invitation_deny";
|
|
1349
1350
|
RequestId["OrganizationPatchMemberRole"] = "organization_patch_member_role";
|
|
1351
|
+
RequestId["NotificationGet"] = "notification_get";
|
|
1350
1352
|
RequestId["NotificationQuery"] = "notification_query";
|
|
1351
1353
|
RequestId["NotificationCreate"] = "notification_create";
|
|
1352
1354
|
RequestId["NotificationPatch"] = "notification_patch";
|
|
@@ -1362,6 +1364,7 @@ var RequestId;
|
|
|
1362
1364
|
RequestId["ChargebeeQueryPlan"] = "chargebee_query_plan";
|
|
1363
1365
|
RequestId["HttpLogQuery"] = "http_log_query";
|
|
1364
1366
|
RequestId["ModelSharingCreate"] = "model_sharing_create";
|
|
1367
|
+
RequestId["ModelSharingCreateMultiple"] = "model_sharing_create_multiple";
|
|
1365
1368
|
RequestId["ModelSharingQuery"] = "model_sharing_query";
|
|
1366
1369
|
RequestId["ModelSharingQueryByModel"] = "model_sharing_query_by_model";
|
|
1367
1370
|
RequestId["ModelSharingQueryByUser"] = "model_sharing_query_by_user";
|
|
@@ -1620,7 +1623,7 @@ exports.SdPlatformAuthServiceApi = SdPlatformAuthServiceApi;
|
|
|
1620
1623
|
"use strict";
|
|
1621
1624
|
|
|
1622
1625
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1623
|
-
exports.SdPlatformOAuthResponseError = exports.SdPlatformResourceResponseError = exports.SdPlatformResponseError = exports.SdPlatformRequestError = exports.SdPlatformError = void 0;
|
|
1626
|
+
exports.SdPlatformUnsupportedGrantTypeClientOAuthResponseError = exports.SdPlatformUnauthorizedClientOAuthResponseError = exports.SdPlatformInvalidGrantOAuthResponseError = exports.SdPlatformInvalidClientOAuthResponseError = exports.SdPlatformInvalidRequestOAuthResponseError = exports.SdPlatformOAuthResponseError = exports.SdPlatformValidationResponseError = exports.SdPlatformUnauthorizedResponseError = exports.SdPlatformForbiddenResponseError = exports.SdPlatformNotFoundResponseError = exports.SdPlatformResourceResponseError = exports.SdPlatformServerResponseError = exports.SdPlatformResponseError = exports.SdPlatformRequestError = exports.SdPlatformError = void 0;
|
|
1624
1627
|
/**
|
|
1625
1628
|
* Generic error
|
|
1626
1629
|
*/
|
|
@@ -1650,20 +1653,50 @@ class SdPlatformResponseError extends SdPlatformError {
|
|
|
1650
1653
|
}
|
|
1651
1654
|
}
|
|
1652
1655
|
exports.SdPlatformResponseError = SdPlatformResponseError;
|
|
1656
|
+
/**
|
|
1657
|
+
* The server error which can just contain message and status code.
|
|
1658
|
+
*/
|
|
1659
|
+
class SdPlatformServerResponseError extends SdPlatformResponseError {
|
|
1660
|
+
}
|
|
1661
|
+
exports.SdPlatformServerResponseError = SdPlatformServerResponseError;
|
|
1653
1662
|
/**
|
|
1654
1663
|
* Resource response error
|
|
1655
1664
|
*/
|
|
1656
1665
|
class SdPlatformResourceResponseError extends SdPlatformResponseError {
|
|
1657
|
-
constructor(message, http_status_code, error, error_description, error_uri, code
|
|
1666
|
+
constructor(message, http_status_code, error, error_description, error_uri, code) {
|
|
1658
1667
|
super(message, http_status_code);
|
|
1659
1668
|
this.error = error;
|
|
1660
1669
|
this.error_description = error_description;
|
|
1661
1670
|
this.error_uri = error_uri;
|
|
1662
1671
|
this.code = code;
|
|
1663
|
-
this.fields = fields;
|
|
1664
1672
|
}
|
|
1665
1673
|
}
|
|
1666
1674
|
exports.SdPlatformResourceResponseError = SdPlatformResourceResponseError;
|
|
1675
|
+
/**
|
|
1676
|
+
* Not found error, returned with 404 status.
|
|
1677
|
+
*/
|
|
1678
|
+
class SdPlatformNotFoundResponseError extends SdPlatformResourceResponseError {
|
|
1679
|
+
}
|
|
1680
|
+
exports.SdPlatformNotFoundResponseError = SdPlatformNotFoundResponseError;
|
|
1681
|
+
/**
|
|
1682
|
+
* Forbidden error, returned with 403 status.
|
|
1683
|
+
*/
|
|
1684
|
+
class SdPlatformForbiddenResponseError extends SdPlatformResourceResponseError {
|
|
1685
|
+
}
|
|
1686
|
+
exports.SdPlatformForbiddenResponseError = SdPlatformForbiddenResponseError;
|
|
1687
|
+
/**
|
|
1688
|
+
* Unauthorized error, returned with 401 status.
|
|
1689
|
+
*/
|
|
1690
|
+
class SdPlatformUnauthorizedResponseError extends SdPlatformResourceResponseError {
|
|
1691
|
+
}
|
|
1692
|
+
exports.SdPlatformUnauthorizedResponseError = SdPlatformUnauthorizedResponseError;
|
|
1693
|
+
class SdPlatformValidationResponseError extends SdPlatformResourceResponseError {
|
|
1694
|
+
constructor(message, http_status_code, error, error_description, error_uri, code, fields) {
|
|
1695
|
+
super(message, http_status_code, error, error_description, error_uri, code);
|
|
1696
|
+
this.fields = fields;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
exports.SdPlatformValidationResponseError = SdPlatformValidationResponseError;
|
|
1667
1700
|
/**
|
|
1668
1701
|
* Authentication response error.
|
|
1669
1702
|
* Follows principles of OAuth 2.0
|
|
@@ -1695,6 +1728,45 @@ class SdPlatformOAuthResponseError extends SdPlatformResponseError {
|
|
|
1695
1728
|
}
|
|
1696
1729
|
}
|
|
1697
1730
|
exports.SdPlatformOAuthResponseError = SdPlatformOAuthResponseError;
|
|
1731
|
+
/**
|
|
1732
|
+
* Authentication response error.
|
|
1733
|
+
* Follows principles of OAuth 2.0
|
|
1734
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
1735
|
+
*/
|
|
1736
|
+
class SdPlatformInvalidRequestOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
1737
|
+
}
|
|
1738
|
+
exports.SdPlatformInvalidRequestOAuthResponseError = SdPlatformInvalidRequestOAuthResponseError;
|
|
1739
|
+
/**
|
|
1740
|
+
* Authentication response error.
|
|
1741
|
+
* Follows principles of OAuth 2.0
|
|
1742
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
1743
|
+
*/
|
|
1744
|
+
class SdPlatformInvalidClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
1745
|
+
}
|
|
1746
|
+
exports.SdPlatformInvalidClientOAuthResponseError = SdPlatformInvalidClientOAuthResponseError;
|
|
1747
|
+
/**
|
|
1748
|
+
* Authentication response error.
|
|
1749
|
+
* Follows principles of OAuth 2.0
|
|
1750
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
1751
|
+
*/
|
|
1752
|
+
class SdPlatformInvalidGrantOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
1753
|
+
}
|
|
1754
|
+
exports.SdPlatformInvalidGrantOAuthResponseError = SdPlatformInvalidGrantOAuthResponseError;
|
|
1755
|
+
/**
|
|
1756
|
+
* Authentication response error.
|
|
1757
|
+
* Follows principles of OAuth 2.0
|
|
1758
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
1759
|
+
*/
|
|
1760
|
+
class SdPlatformUnauthorizedClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
1761
|
+
}
|
|
1762
|
+
exports.SdPlatformUnauthorizedClientOAuthResponseError = SdPlatformUnauthorizedClientOAuthResponseError;
|
|
1763
|
+
/**
|
|
1764
|
+
* Authentication response error.
|
|
1765
|
+
* Follows principles of OAuth 2.0
|
|
1766
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
1767
|
+
*/ class SdPlatformUnsupportedGrantTypeClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
1768
|
+
}
|
|
1769
|
+
exports.SdPlatformUnsupportedGrantTypeClientOAuthResponseError = SdPlatformUnsupportedGrantTypeClientOAuthResponseError;
|
|
1698
1770
|
|
|
1699
1771
|
|
|
1700
1772
|
/***/ }),
|
|
@@ -2316,6 +2388,14 @@ class SdPlatformModelSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2316
2388
|
create(body) {
|
|
2317
2389
|
return super.__post(SdPlatformRequestId_1.RequestId.ModelSharingCreate, body);
|
|
2318
2390
|
}
|
|
2391
|
+
/**
|
|
2392
|
+
* Create multiple sharings.
|
|
2393
|
+
* @param { SdPlatformRequestModelSharingCreateMultiple } body
|
|
2394
|
+
* @returns { Promise<SdPlatformPostResponse<Array<SdPlatformResponseModelSharing>>> }
|
|
2395
|
+
*/
|
|
2396
|
+
createMultiple(body) {
|
|
2397
|
+
return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingCreateMultiple, ResourcesApi_1.Action.Post, "model_sharing_multiple", body);
|
|
2398
|
+
}
|
|
2319
2399
|
/**
|
|
2320
2400
|
* Query model sharing relationships.
|
|
2321
2401
|
* @param query
|
|
@@ -2510,6 +2590,9 @@ class SdPlatformNotificationApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2510
2590
|
summary(embed) {
|
|
2511
2591
|
return super.__get(SdPlatformRequestId_1.RequestId.NotificationSummary, 'summary', embed);
|
|
2512
2592
|
}
|
|
2593
|
+
get(id) {
|
|
2594
|
+
return super.__get(SdPlatformRequestId_1.RequestId.NotificationGet, id);
|
|
2595
|
+
}
|
|
2513
2596
|
/**
|
|
2514
2597
|
* Marks all notifications of signed in user as read.
|
|
2515
2598
|
* @returns { Promise<SdPlatformPostResponse<void>> }
|
|
@@ -2540,6 +2623,7 @@ var SdPlatformOrganizationEmbeddableFields;
|
|
|
2540
2623
|
SdPlatformOrganizationEmbeddableFields["ChargebeeSubscription"] = "chargebee_subscription";
|
|
2541
2624
|
SdPlatformOrganizationEmbeddableFields["ChargebeePlan"] = "chargebee_plan";
|
|
2542
2625
|
SdPlatformOrganizationEmbeddableFields["ChargebeeAddons"] = "chargebee_addons";
|
|
2626
|
+
SdPlatformOrganizationEmbeddableFields["OpenIdProvider"] = "openid_provider";
|
|
2543
2627
|
})(SdPlatformOrganizationEmbeddableFields = exports.SdPlatformOrganizationEmbeddableFields || (exports.SdPlatformOrganizationEmbeddableFields = {}));
|
|
2544
2628
|
/**
|
|
2545
2629
|
* Operations for organizations.
|
|
@@ -3518,10 +3602,14 @@ function isOAuthResponseError(response) {
|
|
|
3518
3602
|
function isResourceResponseError(response) {
|
|
3519
3603
|
return ("error" in response) && ("message" in response.error);
|
|
3520
3604
|
}
|
|
3605
|
+
function isValidationError(response) {
|
|
3606
|
+
return isResourceResponseError(response) && ("fields" in response.error);
|
|
3607
|
+
}
|
|
3521
3608
|
/**
|
|
3522
3609
|
* Maps the given error into a ShapeDiver API response error object.
|
|
3523
3610
|
*/
|
|
3524
3611
|
function mapToApiError(error) {
|
|
3612
|
+
var _a, _b;
|
|
3525
3613
|
// Handle basic non-axios errors
|
|
3526
3614
|
if (!axios_1.default.isAxiosError(error))
|
|
3527
3615
|
return new SdPlatformErrors_1.SdPlatformError(error.message);
|
|
@@ -3529,11 +3617,41 @@ function mapToApiError(error) {
|
|
|
3529
3617
|
if (axiosError.response) {
|
|
3530
3618
|
// Request was made and server responded with 4xx or 5xx
|
|
3531
3619
|
let data = axiosError.response.data;
|
|
3532
|
-
if (
|
|
3620
|
+
if (axiosError.response.status >= 500) {
|
|
3621
|
+
return new SdPlatformErrors_1.SdPlatformServerResponseError((_b = (_a = data === null || data === void 0 ? void 0 : data.error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : "Server Error.", axiosError.response.status);
|
|
3622
|
+
}
|
|
3623
|
+
else if (data && isOAuthResponseError(data)) {
|
|
3624
|
+
if (data.error == "invalid_client") {
|
|
3625
|
+
return new SdPlatformErrors_1.SdPlatformInvalidClientOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3626
|
+
}
|
|
3627
|
+
else if (data.error == "invalid_request") {
|
|
3628
|
+
return new SdPlatformErrors_1.SdPlatformInvalidRequestOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3629
|
+
}
|
|
3630
|
+
else if (data.error == "invalid_grant") {
|
|
3631
|
+
return new SdPlatformErrors_1.SdPlatformInvalidGrantOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3632
|
+
}
|
|
3633
|
+
else if (data.error == "unauthorized_client") {
|
|
3634
|
+
return new SdPlatformErrors_1.SdPlatformUnauthorizedClientOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3635
|
+
}
|
|
3636
|
+
else if (data.error == "unsupported_grant_type") {
|
|
3637
|
+
return new SdPlatformErrors_1.SdPlatformUnsupportedGrantTypeClientOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3638
|
+
}
|
|
3533
3639
|
return new SdPlatformErrors_1.SdPlatformOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3534
3640
|
}
|
|
3535
|
-
else if (isResourceResponseError(data)) {
|
|
3536
|
-
|
|
3641
|
+
else if (data && isResourceResponseError(data)) {
|
|
3642
|
+
if (isValidationError(data)) {
|
|
3643
|
+
return new SdPlatformErrors_1.SdPlatformValidationResponseError(`${data.error.message}. ${data.error.description}.`, axiosError.response.status, data.error.message, data.error.description, data.error.href, data.error.code, data.error.fields);
|
|
3644
|
+
}
|
|
3645
|
+
switch (axiosError.response.status) {
|
|
3646
|
+
case 404:
|
|
3647
|
+
return new SdPlatformErrors_1.SdPlatformNotFoundResponseError(`${data.error.message}. ${data.error.description}.`, axiosError.response.status, data.error.message, data.error.description, data.error.href, data.error.code);
|
|
3648
|
+
case 403:
|
|
3649
|
+
return new SdPlatformErrors_1.SdPlatformForbiddenResponseError(`${data.error.message}. ${data.error.description}.`, axiosError.response.status, data.error.message, data.error.description, data.error.href, data.error.code);
|
|
3650
|
+
case 401:
|
|
3651
|
+
return new SdPlatformErrors_1.SdPlatformUnauthorizedResponseError(`${data.error.message}. ${data.error.description}.`, axiosError.response.status, data.error.message, data.error.description, data.error.href, data.error.code);
|
|
3652
|
+
default:
|
|
3653
|
+
return new SdPlatformErrors_1.SdPlatformResourceResponseError(`${data.error.message}. ${data.error.description}.`, axiosError.response.status, data.error.message, data.error.description, data.error.href, data.error.code);
|
|
3654
|
+
}
|
|
3537
3655
|
}
|
|
3538
3656
|
else {
|
|
3539
3657
|
// Response was made but an unknown error object was received
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdPlatformImageApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformImageApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACzK,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"SdPlatformImageApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformImageApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACzK,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAEjL,oBAAY,oCAAoC;IAE5C,IAAI,SAAS;IACb,MAAM,WAAW;CACpB;AAED,oBAAY,8BAA8B,GAAG,yBAAyB,CAAC,oCAAoC,CAAC,CAAC;AAE7G;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,YAAY;IAEhD,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAED;;;;;OAKG;IACI,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,GAAE,KAAK,CAAC,oCAAoC,CAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,4BAA4B,GAAG,uBAAuB,GAAG,6BAA6B,CAAC,CAAC;IAKvM;;;OAGG;IACI,KAAK,CAAC,IAAI,GAAE,8BAAmC,GAAG,OAAO,CAAC,uBAAuB,CAAC,4BAA4B,GAAG,uBAAuB,GAAG,6BAA6B,CAAC,CAAC;IAKjL;;;OAGG;IACI,MAAM,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC,uBAAuB,CAAC,CAAC;IAK3G;;;OAGG;IACI,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAI/D"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ResourcesApi } from "./commons/ResourcesApi";
|
|
2
|
-
import { SdPlatformRequestModelSharingCreate, SdPlatformResponseModelSharing, SdPlatformResponseModelSharingGroupedByUser } from "@shapediver/api.platform-api-dto-v1";
|
|
3
|
-
import { SdPlatformQueryParameters, SdPlatformGetResponse, SdPlatformQueryResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
|
|
2
|
+
import { SdPlatformDeleteResponse, SdPlatformGetResponse, SdPlatformPostResponse, SdPlatformQueryParameters, SdPlatformQueryResponse, SdPlatformRequestModelSharingCreate, SdPlatformRequestModelSharingCreateMultiple, SdPlatformResponseModelSharing, SdPlatformResponseModelSharingGroupedByUser } from "@shapediver/api.platform-api-dto-v1";
|
|
4
3
|
export declare enum SdPlatformModelharingQueryEmbeddableFields {
|
|
5
4
|
User = "user",
|
|
6
5
|
Model = "model",
|
|
@@ -18,6 +17,12 @@ export declare class SdPlatformModelSharingApi extends ResourcesApi {
|
|
|
18
17
|
* @returns
|
|
19
18
|
*/
|
|
20
19
|
create(body: SdPlatformRequestModelSharingCreate): Promise<SdPlatformPostResponse<SdPlatformResponseModelSharing>>;
|
|
20
|
+
/**
|
|
21
|
+
* Create multiple sharings.
|
|
22
|
+
* @param { SdPlatformRequestModelSharingCreateMultiple } body
|
|
23
|
+
* @returns { Promise<SdPlatformPostResponse<Array<SdPlatformResponseModelSharing>>> }
|
|
24
|
+
*/
|
|
25
|
+
createMultiple(body: SdPlatformRequestModelSharingCreateMultiple): Promise<SdPlatformPostResponse<Array<SdPlatformResponseModelSharing>>>;
|
|
21
26
|
/**
|
|
22
27
|
* Query model sharing relationships.
|
|
23
28
|
* @param query
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdPlatformModelSharingApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformModelSharingApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"SdPlatformModelSharingApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformModelSharingApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EACH,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,mCAAmC,EACnC,2CAA2C,EAC3C,8BAA8B,EAC9B,2CAA2C,EAC9C,MAAM,qCAAqC,CAAA;AAG5C,oBAAY,0CAA0C;IAElD,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;CACxB;AAED,oBAAY,qCAAqC,GAAG,yBAAyB,CAAC,0CAA0C,CAAC,CAAC;AAE1H;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,YAAY;IAEvD,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAED;;;;OAIG;IACI,MAAM,CAAC,IAAI,EAAE,mCAAmC,GAAG,OAAO,CAAC,sBAAsB,CAAC,8BAA8B,CAAC,CAAC;IAKzH;;;;OAIG;IACI,cAAc,CAAC,IAAI,EAAE,2CAA2C,GAAK,OAAO,CAAC,sBAAsB,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,CAAC;IAMlJ;;;;OAIG;IACI,KAAK,CAAC,KAAK,GAAE,qCAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC;IAKjI;;;;;QAKI;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,GAAE,qCAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC;IAK1J;;;;OAIG;IACI,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,qCAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC;IAKxJ;;;;;OAKG;IACI,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,CAAC;IAKlI;;;;OAIG;IACI,MAAM,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAK1E;;;;OAIG;IACI,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAI,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC,CAAC;CAKjI"}
|
|
@@ -24,6 +24,7 @@ export declare class SdPlatformNotificationApi extends ResourcesApi {
|
|
|
24
24
|
patch(id: string, body: SdPlatformRequestNotificationPatch): Promise<SdPlatformPatchResponse<SdPlatformResponseNotification>>;
|
|
25
25
|
delete(id: string): Promise<SdPlatformDeleteResponse>;
|
|
26
26
|
summary(embed: Array<SdPlatformNotificationSummaryEmbeddableFields>): Promise<SdPlatformGetResponse<SdPlatformResponseNotificationSummary>>;
|
|
27
|
+
get<T = SdPlatformResponseNotification>(id: string): Promise<SdPlatformGetResponse<T>>;
|
|
27
28
|
/**
|
|
28
29
|
* Marks all notifications of signed in user as read.
|
|
29
30
|
* @returns { Promise<SdPlatformPostResponse<void>> }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdPlatformNotificationApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformNotificationApi.ts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;IAK7F;;;OAGG;IACI,aAAa,IAAI,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;CAIhE"}
|
|
@@ -8,7 +8,8 @@ export declare enum SdPlatformOrganizationEmbeddableFields {
|
|
|
8
8
|
ChargebeeCustomer = "chargebee_customer",
|
|
9
9
|
ChargebeeSubscription = "chargebee_subscription",
|
|
10
10
|
ChargebeePlan = "chargebee_plan",
|
|
11
|
-
ChargebeeAddons = "chargebee_addons"
|
|
11
|
+
ChargebeeAddons = "chargebee_addons",
|
|
12
|
+
OpenIdProvider = "openid_provider"
|
|
12
13
|
}
|
|
13
14
|
export declare type SdPlatformOrganizationQueryParameters = SdPlatformQueryParameters<SdPlatformOrganizationEmbeddableFields>;
|
|
14
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdPlatformOrganizationApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformOrganizationApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAU,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,8BAA8B,EAAE,mCAAmC,EAAE,qCAAqC,EAAE,oCAAoC,EAAE,mCAAmC,EAAE,2CAA2C,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAA;AAC1T,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAE1M,oBAAY,sCAAsC;IAE9C,aAAa,kBAAkB;IAC/B,aAAa,mBAAmB;IAChC,OAAO,YAAY;IACnB,iBAAiB,uBAAuB;IACxC,qBAAqB,2BAA2B;IAChD,aAAa,mBAAmB;IAChC,eAAe,qBAAqB;
|
|
1
|
+
{"version":3,"file":"SdPlatformOrganizationApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformOrganizationApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAU,YAAY,EAAE,MAAM,w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,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAK5D;;;;;OAKG;IACI,4BAA4B,CAAC,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,8BAA8B,CAAC,CAAC;IAKlJ;;;;;OAKG;IACI,4BAA4B,CAAC,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKpH;;;;OAIG;IACI,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,CAAC;IAMjI;;;;OAIG;IACI,4BAA4B,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAMnG;;;;OAIG;IACI,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAKjG;;;OAGG;IACK,eAAe,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,gCAAgC,GAAI,OAAO,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;CAOlK"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/sdk.platform-api-sdk-v1",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "SDK to communicate with the Platform API version 1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shapediver",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"build-prod": "bash ../../scripts/build-prod.sh"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@shapediver/api.platform-api-dto-v1": "^2.
|
|
42
|
+
"@shapediver/api.platform-api-dto-v1": "^2.11.0",
|
|
43
43
|
"@types/q": "^1.5.5",
|
|
44
44
|
"axios": "^0.26.1",
|
|
45
45
|
"dotenv": "^16.0.0",
|