@shapediver/sdk.platform-api-sdk-v1 2.9.4 → 2.9.15
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/README.md +15 -4
- package/dist/SdPlatformErrors.d.ts +58 -1
- package/dist/SdPlatformErrors.d.ts.map +1 -1
- package/dist/api/SdPlatformRequestId.d.ts +5 -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 +150 -6
- package/dist/bundle.node.js +150 -6
- package/dist/resources/SdPlatformImageApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformModelSharingApi.d.ts +13 -2
- package/dist/resources/SdPlatformModelSharingApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformNotificationApi.d.ts +6 -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/dist/resources/SdPlatformSavedStateSharingApi.d.ts +7 -1
- package/dist/resources/SdPlatformSavedStateSharingApi.d.ts.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
# ShapeDiver Platform SDK
|
|
11
11
|
[ShapeDiver](https://www.shapediver.com/) is a cloud platform that provides the right tools and scalable infrastructure to help you transform your Grasshopper files into online applications. It allows you to share the power of Grasshopper and Parametric Design with partners, clients and other key stakeholders wherever they are.
|
|
12
12
|
|
|
13
|
-
The **ShapeDiver Platform SDK** allows to access the functionality of the [ShapeDiver Platform](https://www.shapediver.com/app/) (or white labelled instances of it) by means of the [ShapeDiver Platform API](https://
|
|
13
|
+
The **ShapeDiver Platform SDK** allows to access the functionality of the [ShapeDiver Platform](https://www.shapediver.com/app/) (or white labelled instances of it) by means of the [ShapeDiver Platform API](https://help.shapediver.com/doc/platform-backend).
|
|
14
14
|
The SDK exposes all TypeScript-types describing request and response objects.
|
|
15
15
|
|
|
16
|
-
The authentication system is based on **JWT tokens**, which the SDK allows you to request from the **ShapeDiver Platform** using the OAuth 2.0 functionality integrated with the [ShapeDiver Platform API](https://
|
|
16
|
+
The authentication system is based on **JWT tokens**, which the SDK allows you to request from the **ShapeDiver Platform** using the OAuth 2.0 functionality integrated with the [ShapeDiver Platform API](https://help.shapediver.com/doc/platform-backend).
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
@@ -29,16 +29,27 @@ The authentication system is based on **JWT tokens**, which the SDK allows you t
|
|
|
29
29
|
* Create and authorize client:
|
|
30
30
|
```javascript
|
|
31
31
|
const client = create({clientId: "CLIENT_ID", baseUrl: "SHAPEDIVER_PLATFORM_API_ENDPOINT"});
|
|
32
|
-
await client.authorization.passwordGrant("USERNAME", "PASSWORD");
|
|
32
|
+
await client.authorization.passwordGrant("USERNAME OR ACCESS KEY ID", "PASSWORD OR ACCESS KEY SECRET");
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
Whenever possible do not use your username and password for usage of the SDK. Instead log in to the [ShapeDiver Platform](https://www.shapediver.com/app/) and create an access key pair, consisting of an
|
|
36
|
+
|
|
37
|
+
* access key id (to be used instead of your username), and an
|
|
38
|
+
* access key secret (to be used instead of your password).
|
|
39
|
+
|
|
40
|
+
Using access keys allows you to keep your application secure, because access keys
|
|
41
|
+
|
|
42
|
+
* can be limited in scope (e.g. they can be limited to be read only)
|
|
43
|
+
* can easily be revoked at any time
|
|
44
|
+
* can be time limited.
|
|
45
|
+
|
|
35
46
|
## Versioning
|
|
36
47
|
We take care to provide backwards compatibility for older versions of the SDK and the API, but might introduce breaking changes in case of major version upgrades.
|
|
37
48
|
New features of the SDK might be limited to newer versions of the API. We recommend always using the newest SDK version out there.
|
|
38
49
|
|
|
39
50
|
## Support
|
|
40
51
|
|
|
41
|
-
* [Plaform Backend documentation](https://help.shapediver.com/doc/
|
|
52
|
+
* [Plaform Backend documentation](https://help.shapediver.com/doc/platform-backend)
|
|
42
53
|
* [ShapeDiver Help Center](https://help.shapediver.com)
|
|
43
54
|
* [Forum](https://forum.shapediver.com)
|
|
44
55
|
|
|
@@ -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,gBAAgB,EAAE,MAAM;gBADxC,OAAO,EAAE,MAAM,EACC,gBAAgB,EAAE,MAAM;CAK/C;AAED;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,uBAAuB;CAGzE;AAED;;GAEG;AACH,qBAAa,+BAAgC,SAAQ,uBAAuB;aAKpD,KAAK,EAAE,MAAM;aACb,iBAAiB,EAAE,MAAM;aACzB,SAAS,CAAC;aACV,IAAI,CAAC;gBALrB,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,EACR,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,MAAM,EACzB,SAAS,CAAC,oBAAQ,EAClB,IAAI,CAAC,6BAAiB;CAK7C;AAED;;GAEG;AACH,qBAAa,+BAAgC,SAAQ,+BAA+B;CAGnF;AAED;;GAEG;AACF,qBAAa,gCAAiC,SAAQ,+BAA+B;CAGpF;AAED;;GAEG;AACH,qBAAa,mCAAoC,SAAQ,+BAA+B;CAGvF;AAEF,qBAAa,iCAAkC,SAAQ,+BAA+B;aAS9D,MAAM,CAAC;;;gBANvB,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,EACxB,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,MAAM,EACzB,SAAS,CAAC,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EACN,MAAM,CAAC;;iBAA6B;CAI3D;AAGD;;;;GAIG;AACH,qBAAa,4BAA6B,SAAQ,uBAAuB;IAMjE;;;;;;;;;;OAUG;aACa,KAAK,EAAE,MAAM;IAC7B,oEAAoE;aACpD,iBAAiB,EAAE,MAAM;IACzC;mCAC+B;aACf,SAAS,CAAC;gBAlB1B,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM;IACxB;;;;;;;;;;OAUG;IACa,KAAK,EAAE,MAAM;IAC7B,oEAAoE;IACpD,iBAAiB,EAAE,MAAM;IACzC;mCAC+B;IACf,SAAS,CAAC,oBAAQ;CAMzC;AAED;;;;GAIG;AACH,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,11 +75,13 @@ 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",
|
|
81
82
|
NotificationDelete = "notification_delete",
|
|
82
83
|
NotificationSummary = "notification_summary",
|
|
84
|
+
NotificationReadAll = "notification_read_all",
|
|
83
85
|
UserModelSessionsQuery = "user_model_sessions_query",
|
|
84
86
|
OrganizationModelSessionsQuery = "organization_model_sessions_query",
|
|
85
87
|
ChargebeeHostedPage = "chargebee_hosted_page",
|
|
@@ -89,17 +91,20 @@ export declare enum RequestId {
|
|
|
89
91
|
ChargebeeQueryPlan = "chargebee_query_plan",
|
|
90
92
|
HttpLogQuery = "http_log_query",
|
|
91
93
|
ModelSharingCreate = "model_sharing_create",
|
|
94
|
+
ModelSharingCreateMultiple = "model_sharing_create_multiple",
|
|
92
95
|
ModelSharingQuery = "model_sharing_query",
|
|
93
96
|
ModelSharingQueryByModel = "model_sharing_query_by_model",
|
|
94
97
|
ModelSharingQueryByUser = "model_sharing_query_by_user",
|
|
95
98
|
ModelSharingGetByModelAndUser = "model_sharing_get_by_model_and_user",
|
|
96
99
|
ModelSharingDelete = "model_sharing_delete",
|
|
100
|
+
ModelSharingGroupedByuser = "model_sharing_grouped_by_user",
|
|
97
101
|
SavedStateSharingCreate = "saved_state_sharing_create",
|
|
98
102
|
SavedStateSharingQuery = "saved_state_sharing_query",
|
|
99
103
|
SavedStateSharingQueryBySavedState = "saved_state_sharing_query_by_saved_state",
|
|
100
104
|
SavedStateSharingQueryByUser = "saved_state_sharing_query_by_user",
|
|
101
105
|
SavedStateSharingGetBySavedStateAndUser = "saved_state_sharing_get_by_saved_state_and_user",
|
|
102
106
|
SavedStateSharingDelete = "saved_state_sharing_delete",
|
|
107
|
+
SavedStateSharingGroupedByuser = "saved_state_sharing_grouped_by_user",
|
|
103
108
|
WebhookChargebeeEvent = "webhook_chargebee_event",
|
|
104
109
|
WebhookModelMessage = "webhook_model_message",
|
|
105
110
|
WebhookNotification = "webhook_notification",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sd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B,kCAAkC;IAC5D,iBAAiB,wBAAwB;IACzC,wBAAwB,iCAAiC;IACzD,uBAAuB,gCAAgC;IACvD,6BAA6B,wCAAwC;IACrE,kBAAkB,yBAAyB;IAC3C,yBAAyB,kCAAkC;IAE3D,uBAAuB,+BAA+B;IACtD,sBAAsB,8BAA8B;IACpD,kCAAkC,6CAA6C;IAC/E,4BAA4B,sCAAsC;IAClE,uCAAuC,oDAAoD;IAC3F,uBAAuB,+BAA+B;IACtD,8BAA8B,wCAAwC;IAEtE,qBAAqB,4BAA4B;IACjD,mBAAmB,0BAA0B;IAC7C,mBAAmB,yBAAyB;IAE5C,0BAA0B,kCAAkC;IAC5D,0BAA0B,kCAAkC;IAC5D,wBAAwB,gCAAgC;IACxD,uBAAuB,+BAA+B;IACtD,0BAA0B,kCAAkC;IAC5D,wBAAwB,gCAAgC;IAExD,cAAc,oBAAoB;IAClC,aAAa,mBAAmB;IAChC,cAAc,oBAAoB;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,11 +1348,13 @@ 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";
|
|
1353
1355
|
RequestId["NotificationDelete"] = "notification_delete";
|
|
1354
1356
|
RequestId["NotificationSummary"] = "notification_summary";
|
|
1357
|
+
RequestId["NotificationReadAll"] = "notification_read_all";
|
|
1355
1358
|
RequestId["UserModelSessionsQuery"] = "user_model_sessions_query";
|
|
1356
1359
|
RequestId["OrganizationModelSessionsQuery"] = "organization_model_sessions_query";
|
|
1357
1360
|
RequestId["ChargebeeHostedPage"] = "chargebee_hosted_page";
|
|
@@ -1361,17 +1364,20 @@ var RequestId;
|
|
|
1361
1364
|
RequestId["ChargebeeQueryPlan"] = "chargebee_query_plan";
|
|
1362
1365
|
RequestId["HttpLogQuery"] = "http_log_query";
|
|
1363
1366
|
RequestId["ModelSharingCreate"] = "model_sharing_create";
|
|
1367
|
+
RequestId["ModelSharingCreateMultiple"] = "model_sharing_create_multiple";
|
|
1364
1368
|
RequestId["ModelSharingQuery"] = "model_sharing_query";
|
|
1365
1369
|
RequestId["ModelSharingQueryByModel"] = "model_sharing_query_by_model";
|
|
1366
1370
|
RequestId["ModelSharingQueryByUser"] = "model_sharing_query_by_user";
|
|
1367
1371
|
RequestId["ModelSharingGetByModelAndUser"] = "model_sharing_get_by_model_and_user";
|
|
1368
1372
|
RequestId["ModelSharingDelete"] = "model_sharing_delete";
|
|
1373
|
+
RequestId["ModelSharingGroupedByuser"] = "model_sharing_grouped_by_user";
|
|
1369
1374
|
RequestId["SavedStateSharingCreate"] = "saved_state_sharing_create";
|
|
1370
1375
|
RequestId["SavedStateSharingQuery"] = "saved_state_sharing_query";
|
|
1371
1376
|
RequestId["SavedStateSharingQueryBySavedState"] = "saved_state_sharing_query_by_saved_state";
|
|
1372
1377
|
RequestId["SavedStateSharingQueryByUser"] = "saved_state_sharing_query_by_user";
|
|
1373
1378
|
RequestId["SavedStateSharingGetBySavedStateAndUser"] = "saved_state_sharing_get_by_saved_state_and_user";
|
|
1374
1379
|
RequestId["SavedStateSharingDelete"] = "saved_state_sharing_delete";
|
|
1380
|
+
RequestId["SavedStateSharingGroupedByuser"] = "saved_state_sharing_grouped_by_user";
|
|
1375
1381
|
RequestId["WebhookChargebeeEvent"] = "webhook_chargebee_event";
|
|
1376
1382
|
RequestId["WebhookModelMessage"] = "webhook_model_message";
|
|
1377
1383
|
RequestId["WebhookNotification"] = "webhook_notification";
|
|
@@ -1617,7 +1623,7 @@ exports.SdPlatformAuthServiceApi = SdPlatformAuthServiceApi;
|
|
|
1617
1623
|
"use strict";
|
|
1618
1624
|
|
|
1619
1625
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1620
|
-
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;
|
|
1621
1627
|
/**
|
|
1622
1628
|
* Generic error
|
|
1623
1629
|
*/
|
|
@@ -1647,20 +1653,50 @@ class SdPlatformResponseError extends SdPlatformError {
|
|
|
1647
1653
|
}
|
|
1648
1654
|
}
|
|
1649
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;
|
|
1650
1662
|
/**
|
|
1651
1663
|
* Resource response error
|
|
1652
1664
|
*/
|
|
1653
1665
|
class SdPlatformResourceResponseError extends SdPlatformResponseError {
|
|
1654
|
-
constructor(message, http_status_code, error, error_description, error_uri, code
|
|
1666
|
+
constructor(message, http_status_code, error, error_description, error_uri, code) {
|
|
1655
1667
|
super(message, http_status_code);
|
|
1656
1668
|
this.error = error;
|
|
1657
1669
|
this.error_description = error_description;
|
|
1658
1670
|
this.error_uri = error_uri;
|
|
1659
1671
|
this.code = code;
|
|
1660
|
-
this.fields = fields;
|
|
1661
1672
|
}
|
|
1662
1673
|
}
|
|
1663
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;
|
|
1664
1700
|
/**
|
|
1665
1701
|
* Authentication response error.
|
|
1666
1702
|
* Follows principles of OAuth 2.0
|
|
@@ -1692,6 +1728,45 @@ class SdPlatformOAuthResponseError extends SdPlatformResponseError {
|
|
|
1692
1728
|
}
|
|
1693
1729
|
}
|
|
1694
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;
|
|
1695
1770
|
|
|
1696
1771
|
|
|
1697
1772
|
/***/ }),
|
|
@@ -2313,6 +2388,14 @@ class SdPlatformModelSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2313
2388
|
create(body) {
|
|
2314
2389
|
return super.__post(SdPlatformRequestId_1.RequestId.ModelSharingCreate, body);
|
|
2315
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
|
+
}
|
|
2316
2399
|
/**
|
|
2317
2400
|
* Query model sharing relationships.
|
|
2318
2401
|
* @param query
|
|
@@ -2355,6 +2438,14 @@ class SdPlatformModelSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2355
2438
|
delete(model_sharing_id) {
|
|
2356
2439
|
return super.__delete(SdPlatformRequestId_1.RequestId.ModelSharingDelete, model_sharing_id);
|
|
2357
2440
|
}
|
|
2441
|
+
/**
|
|
2442
|
+
* Gets the model sharings grouped by user.
|
|
2443
|
+
* @param model_id
|
|
2444
|
+
* @returns
|
|
2445
|
+
*/
|
|
2446
|
+
getGroupedByUser(model_id) {
|
|
2447
|
+
return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingGroupedByuser, ResourcesApi_1.Action.Get, `model/${model_id}/grouped_by_user`, {});
|
|
2448
|
+
}
|
|
2358
2449
|
}
|
|
2359
2450
|
exports.SdPlatformModelSharingApi = SdPlatformModelSharingApi;
|
|
2360
2451
|
|
|
@@ -2499,6 +2590,16 @@ class SdPlatformNotificationApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2499
2590
|
summary(embed) {
|
|
2500
2591
|
return super.__get(SdPlatformRequestId_1.RequestId.NotificationSummary, 'summary', embed);
|
|
2501
2592
|
}
|
|
2593
|
+
get(id) {
|
|
2594
|
+
return super.__get(SdPlatformRequestId_1.RequestId.NotificationGet, id);
|
|
2595
|
+
}
|
|
2596
|
+
/**
|
|
2597
|
+
* Marks all notifications of signed in user as read.
|
|
2598
|
+
* @returns { Promise<SdPlatformPostResponse<void>> }
|
|
2599
|
+
*/
|
|
2600
|
+
markAllAsRead() {
|
|
2601
|
+
return super.__action(SdPlatformRequestId_1.RequestId.NotificationReadAll, ResourcesApi_1.Action.Post, 'read_all', {});
|
|
2602
|
+
}
|
|
2502
2603
|
}
|
|
2503
2604
|
exports.SdPlatformNotificationApi = SdPlatformNotificationApi;
|
|
2504
2605
|
|
|
@@ -2522,6 +2623,7 @@ var SdPlatformOrganizationEmbeddableFields;
|
|
|
2522
2623
|
SdPlatformOrganizationEmbeddableFields["ChargebeeSubscription"] = "chargebee_subscription";
|
|
2523
2624
|
SdPlatformOrganizationEmbeddableFields["ChargebeePlan"] = "chargebee_plan";
|
|
2524
2625
|
SdPlatformOrganizationEmbeddableFields["ChargebeeAddons"] = "chargebee_addons";
|
|
2626
|
+
SdPlatformOrganizationEmbeddableFields["OpenIdProvider"] = "openid_provider";
|
|
2525
2627
|
})(SdPlatformOrganizationEmbeddableFields = exports.SdPlatformOrganizationEmbeddableFields || (exports.SdPlatformOrganizationEmbeddableFields = {}));
|
|
2526
2628
|
/**
|
|
2527
2629
|
* Operations for organizations.
|
|
@@ -2808,6 +2910,14 @@ class SdPlatformSavedStateSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2808
2910
|
queryByUser(user_id, query) {
|
|
2809
2911
|
return super.__action(SdPlatformRequestId_1.RequestId.SavedStateSharingQueryByUser, ResourcesApi_1.Action.Post, `user/${user_id}/query`, query);
|
|
2810
2912
|
}
|
|
2913
|
+
/**
|
|
2914
|
+
* Gets the model sharings grouped by user.
|
|
2915
|
+
* @param saved_state_id
|
|
2916
|
+
* @returns
|
|
2917
|
+
*/
|
|
2918
|
+
getGroupedByUser(saved_state_id) {
|
|
2919
|
+
return super.__action(SdPlatformRequestId_1.RequestId.SavedStateSharingGroupedByuser, ResourcesApi_1.Action.Get, `saved_state/${saved_state_id}/grouped_by_user`, {});
|
|
2920
|
+
}
|
|
2811
2921
|
}
|
|
2812
2922
|
exports.SdPlatformSavedStateSharingApi = SdPlatformSavedStateSharingApi;
|
|
2813
2923
|
|
|
@@ -3492,10 +3602,14 @@ function isOAuthResponseError(response) {
|
|
|
3492
3602
|
function isResourceResponseError(response) {
|
|
3493
3603
|
return ("error" in response) && ("message" in response.error);
|
|
3494
3604
|
}
|
|
3605
|
+
function isValidationError(response) {
|
|
3606
|
+
return isResourceResponseError(response) && ("fields" in response.error);
|
|
3607
|
+
}
|
|
3495
3608
|
/**
|
|
3496
3609
|
* Maps the given error into a ShapeDiver API response error object.
|
|
3497
3610
|
*/
|
|
3498
3611
|
function mapToApiError(error) {
|
|
3612
|
+
var _a, _b;
|
|
3499
3613
|
// Handle basic non-axios errors
|
|
3500
3614
|
if (!axios_1.default.isAxiosError(error))
|
|
3501
3615
|
return new SdPlatformErrors_1.SdPlatformError(error.message);
|
|
@@ -3503,11 +3617,41 @@ function mapToApiError(error) {
|
|
|
3503
3617
|
if (axiosError.response) {
|
|
3504
3618
|
// Request was made and server responded with 4xx or 5xx
|
|
3505
3619
|
let data = axiosError.response.data;
|
|
3506
|
-
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
|
+
}
|
|
3507
3639
|
return new SdPlatformErrors_1.SdPlatformOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3508
3640
|
}
|
|
3509
|
-
else if (isResourceResponseError(data)) {
|
|
3510
|
-
|
|
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
|
+
}
|
|
3511
3655
|
}
|
|
3512
3656
|
else {
|
|
3513
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,11 +1348,13 @@ 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";
|
|
1353
1355
|
RequestId["NotificationDelete"] = "notification_delete";
|
|
1354
1356
|
RequestId["NotificationSummary"] = "notification_summary";
|
|
1357
|
+
RequestId["NotificationReadAll"] = "notification_read_all";
|
|
1355
1358
|
RequestId["UserModelSessionsQuery"] = "user_model_sessions_query";
|
|
1356
1359
|
RequestId["OrganizationModelSessionsQuery"] = "organization_model_sessions_query";
|
|
1357
1360
|
RequestId["ChargebeeHostedPage"] = "chargebee_hosted_page";
|
|
@@ -1361,17 +1364,20 @@ var RequestId;
|
|
|
1361
1364
|
RequestId["ChargebeeQueryPlan"] = "chargebee_query_plan";
|
|
1362
1365
|
RequestId["HttpLogQuery"] = "http_log_query";
|
|
1363
1366
|
RequestId["ModelSharingCreate"] = "model_sharing_create";
|
|
1367
|
+
RequestId["ModelSharingCreateMultiple"] = "model_sharing_create_multiple";
|
|
1364
1368
|
RequestId["ModelSharingQuery"] = "model_sharing_query";
|
|
1365
1369
|
RequestId["ModelSharingQueryByModel"] = "model_sharing_query_by_model";
|
|
1366
1370
|
RequestId["ModelSharingQueryByUser"] = "model_sharing_query_by_user";
|
|
1367
1371
|
RequestId["ModelSharingGetByModelAndUser"] = "model_sharing_get_by_model_and_user";
|
|
1368
1372
|
RequestId["ModelSharingDelete"] = "model_sharing_delete";
|
|
1373
|
+
RequestId["ModelSharingGroupedByuser"] = "model_sharing_grouped_by_user";
|
|
1369
1374
|
RequestId["SavedStateSharingCreate"] = "saved_state_sharing_create";
|
|
1370
1375
|
RequestId["SavedStateSharingQuery"] = "saved_state_sharing_query";
|
|
1371
1376
|
RequestId["SavedStateSharingQueryBySavedState"] = "saved_state_sharing_query_by_saved_state";
|
|
1372
1377
|
RequestId["SavedStateSharingQueryByUser"] = "saved_state_sharing_query_by_user";
|
|
1373
1378
|
RequestId["SavedStateSharingGetBySavedStateAndUser"] = "saved_state_sharing_get_by_saved_state_and_user";
|
|
1374
1379
|
RequestId["SavedStateSharingDelete"] = "saved_state_sharing_delete";
|
|
1380
|
+
RequestId["SavedStateSharingGroupedByuser"] = "saved_state_sharing_grouped_by_user";
|
|
1375
1381
|
RequestId["WebhookChargebeeEvent"] = "webhook_chargebee_event";
|
|
1376
1382
|
RequestId["WebhookModelMessage"] = "webhook_model_message";
|
|
1377
1383
|
RequestId["WebhookNotification"] = "webhook_notification";
|
|
@@ -1617,7 +1623,7 @@ exports.SdPlatformAuthServiceApi = SdPlatformAuthServiceApi;
|
|
|
1617
1623
|
"use strict";
|
|
1618
1624
|
|
|
1619
1625
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1620
|
-
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;
|
|
1621
1627
|
/**
|
|
1622
1628
|
* Generic error
|
|
1623
1629
|
*/
|
|
@@ -1647,20 +1653,50 @@ class SdPlatformResponseError extends SdPlatformError {
|
|
|
1647
1653
|
}
|
|
1648
1654
|
}
|
|
1649
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;
|
|
1650
1662
|
/**
|
|
1651
1663
|
* Resource response error
|
|
1652
1664
|
*/
|
|
1653
1665
|
class SdPlatformResourceResponseError extends SdPlatformResponseError {
|
|
1654
|
-
constructor(message, http_status_code, error, error_description, error_uri, code
|
|
1666
|
+
constructor(message, http_status_code, error, error_description, error_uri, code) {
|
|
1655
1667
|
super(message, http_status_code);
|
|
1656
1668
|
this.error = error;
|
|
1657
1669
|
this.error_description = error_description;
|
|
1658
1670
|
this.error_uri = error_uri;
|
|
1659
1671
|
this.code = code;
|
|
1660
|
-
this.fields = fields;
|
|
1661
1672
|
}
|
|
1662
1673
|
}
|
|
1663
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;
|
|
1664
1700
|
/**
|
|
1665
1701
|
* Authentication response error.
|
|
1666
1702
|
* Follows principles of OAuth 2.0
|
|
@@ -1692,6 +1728,45 @@ class SdPlatformOAuthResponseError extends SdPlatformResponseError {
|
|
|
1692
1728
|
}
|
|
1693
1729
|
}
|
|
1694
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;
|
|
1695
1770
|
|
|
1696
1771
|
|
|
1697
1772
|
/***/ }),
|
|
@@ -2313,6 +2388,14 @@ class SdPlatformModelSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2313
2388
|
create(body) {
|
|
2314
2389
|
return super.__post(SdPlatformRequestId_1.RequestId.ModelSharingCreate, body);
|
|
2315
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
|
+
}
|
|
2316
2399
|
/**
|
|
2317
2400
|
* Query model sharing relationships.
|
|
2318
2401
|
* @param query
|
|
@@ -2355,6 +2438,14 @@ class SdPlatformModelSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2355
2438
|
delete(model_sharing_id) {
|
|
2356
2439
|
return super.__delete(SdPlatformRequestId_1.RequestId.ModelSharingDelete, model_sharing_id);
|
|
2357
2440
|
}
|
|
2441
|
+
/**
|
|
2442
|
+
* Gets the model sharings grouped by user.
|
|
2443
|
+
* @param model_id
|
|
2444
|
+
* @returns
|
|
2445
|
+
*/
|
|
2446
|
+
getGroupedByUser(model_id) {
|
|
2447
|
+
return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingGroupedByuser, ResourcesApi_1.Action.Get, `model/${model_id}/grouped_by_user`, {});
|
|
2448
|
+
}
|
|
2358
2449
|
}
|
|
2359
2450
|
exports.SdPlatformModelSharingApi = SdPlatformModelSharingApi;
|
|
2360
2451
|
|
|
@@ -2499,6 +2590,16 @@ class SdPlatformNotificationApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2499
2590
|
summary(embed) {
|
|
2500
2591
|
return super.__get(SdPlatformRequestId_1.RequestId.NotificationSummary, 'summary', embed);
|
|
2501
2592
|
}
|
|
2593
|
+
get(id) {
|
|
2594
|
+
return super.__get(SdPlatformRequestId_1.RequestId.NotificationGet, id);
|
|
2595
|
+
}
|
|
2596
|
+
/**
|
|
2597
|
+
* Marks all notifications of signed in user as read.
|
|
2598
|
+
* @returns { Promise<SdPlatformPostResponse<void>> }
|
|
2599
|
+
*/
|
|
2600
|
+
markAllAsRead() {
|
|
2601
|
+
return super.__action(SdPlatformRequestId_1.RequestId.NotificationReadAll, ResourcesApi_1.Action.Post, 'read_all', {});
|
|
2602
|
+
}
|
|
2502
2603
|
}
|
|
2503
2604
|
exports.SdPlatformNotificationApi = SdPlatformNotificationApi;
|
|
2504
2605
|
|
|
@@ -2522,6 +2623,7 @@ var SdPlatformOrganizationEmbeddableFields;
|
|
|
2522
2623
|
SdPlatformOrganizationEmbeddableFields["ChargebeeSubscription"] = "chargebee_subscription";
|
|
2523
2624
|
SdPlatformOrganizationEmbeddableFields["ChargebeePlan"] = "chargebee_plan";
|
|
2524
2625
|
SdPlatformOrganizationEmbeddableFields["ChargebeeAddons"] = "chargebee_addons";
|
|
2626
|
+
SdPlatformOrganizationEmbeddableFields["OpenIdProvider"] = "openid_provider";
|
|
2525
2627
|
})(SdPlatformOrganizationEmbeddableFields = exports.SdPlatformOrganizationEmbeddableFields || (exports.SdPlatformOrganizationEmbeddableFields = {}));
|
|
2526
2628
|
/**
|
|
2527
2629
|
* Operations for organizations.
|
|
@@ -2808,6 +2910,14 @@ class SdPlatformSavedStateSharingApi extends ResourcesApi_1.ResourcesApi {
|
|
|
2808
2910
|
queryByUser(user_id, query) {
|
|
2809
2911
|
return super.__action(SdPlatformRequestId_1.RequestId.SavedStateSharingQueryByUser, ResourcesApi_1.Action.Post, `user/${user_id}/query`, query);
|
|
2810
2912
|
}
|
|
2913
|
+
/**
|
|
2914
|
+
* Gets the model sharings grouped by user.
|
|
2915
|
+
* @param saved_state_id
|
|
2916
|
+
* @returns
|
|
2917
|
+
*/
|
|
2918
|
+
getGroupedByUser(saved_state_id) {
|
|
2919
|
+
return super.__action(SdPlatformRequestId_1.RequestId.SavedStateSharingGroupedByuser, ResourcesApi_1.Action.Get, `saved_state/${saved_state_id}/grouped_by_user`, {});
|
|
2920
|
+
}
|
|
2811
2921
|
}
|
|
2812
2922
|
exports.SdPlatformSavedStateSharingApi = SdPlatformSavedStateSharingApi;
|
|
2813
2923
|
|
|
@@ -3492,10 +3602,14 @@ function isOAuthResponseError(response) {
|
|
|
3492
3602
|
function isResourceResponseError(response) {
|
|
3493
3603
|
return ("error" in response) && ("message" in response.error);
|
|
3494
3604
|
}
|
|
3605
|
+
function isValidationError(response) {
|
|
3606
|
+
return isResourceResponseError(response) && ("fields" in response.error);
|
|
3607
|
+
}
|
|
3495
3608
|
/**
|
|
3496
3609
|
* Maps the given error into a ShapeDiver API response error object.
|
|
3497
3610
|
*/
|
|
3498
3611
|
function mapToApiError(error) {
|
|
3612
|
+
var _a, _b;
|
|
3499
3613
|
// Handle basic non-axios errors
|
|
3500
3614
|
if (!axios_1.default.isAxiosError(error))
|
|
3501
3615
|
return new SdPlatformErrors_1.SdPlatformError(error.message);
|
|
@@ -3503,11 +3617,41 @@ function mapToApiError(error) {
|
|
|
3503
3617
|
if (axiosError.response) {
|
|
3504
3618
|
// Request was made and server responded with 4xx or 5xx
|
|
3505
3619
|
let data = axiosError.response.data;
|
|
3506
|
-
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
|
+
}
|
|
3507
3639
|
return new SdPlatformErrors_1.SdPlatformOAuthResponseError(`${data.error}. ${data.error_description}.`, axiosError.response.status, data.error, data.error_description, data.error_uri);
|
|
3508
3640
|
}
|
|
3509
|
-
else if (isResourceResponseError(data)) {
|
|
3510
|
-
|
|
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
|
+
}
|
|
3511
3655
|
}
|
|
3512
3656
|
else {
|
|
3513
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 } 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
|
|
@@ -50,5 +55,11 @@ export declare class SdPlatformModelSharingApi extends ResourcesApi {
|
|
|
50
55
|
* @returns
|
|
51
56
|
*/
|
|
52
57
|
delete(model_sharing_id: string): Promise<SdPlatformDeleteResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the model sharings grouped by user.
|
|
60
|
+
* @param model_id
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
63
|
+
getGroupedByUser(model_id: string): Promise<SdPlatformGetResponse<Array<SdPlatformResponseModelSharingGroupedByUser>>>;
|
|
53
64
|
}
|
|
54
65
|
//# sourceMappingURL=SdPlatformModelSharingApi.d.ts.map
|
|
@@ -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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;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,5 +24,11 @@ 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>>;
|
|
28
|
+
/**
|
|
29
|
+
* Marks all notifications of signed in user as read.
|
|
30
|
+
* @returns { Promise<SdPlatformPostResponse<void>> }
|
|
31
|
+
*/
|
|
32
|
+
markAllAsRead(): Promise<SdPlatformPostResponse<void>>;
|
|
27
33
|
}
|
|
28
34
|
//# sourceMappingURL=SdPlatformNotificationApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdPlatformNotificationApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformNotificationApi.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"SdPlatformNotificationApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformNotificationApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAU,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EACH,qBAAqB,EACrB,mCAAmC,EACnC,kCAAkC,EAClC,8BAA8B,EAC9B,qCAAqC,EACxC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,uBAAuB,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
|
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,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,uBAAu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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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SdPlatformResponseSavedStateSharing, SdPlatformResponseSavedStateSharingCreate } from "@shapediver/api.platform-api-dto-v1";
|
|
1
|
+
import { SdPlatformResponseSavedStateSharing, SdPlatformResponseSavedStateSharingCreate, SdPlatformResponseSavedStateSharingGroupedByUser } from "@shapediver/api.platform-api-dto-v1";
|
|
2
2
|
import { ResourcesApi } from "./commons/ResourcesApi";
|
|
3
3
|
import { SdPlatformQueryParameters, SdPlatformGetResponse, SdPlatformQueryResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
|
|
4
4
|
export declare enum SdPlatformSavedStateSharingQueryEmbeddableFields {
|
|
@@ -51,5 +51,11 @@ export declare class SdPlatformSavedStateSharingApi extends ResourcesApi {
|
|
|
51
51
|
* @returns
|
|
52
52
|
*/
|
|
53
53
|
queryByUser(user_id: string, query?: SdPlatformSavedStateSharingQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponseSavedStateSharing>>;
|
|
54
|
+
/**
|
|
55
|
+
* Gets the model sharings grouped by user.
|
|
56
|
+
* @param saved_state_id
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
getGroupedByUser(saved_state_id: string): Promise<SdPlatformGetResponse<Array<SdPlatformResponseSavedStateSharingGroupedByUser>>>;
|
|
54
60
|
}
|
|
55
61
|
//# sourceMappingURL=SdPlatformSavedStateSharingApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdPlatformSavedStateSharingApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformSavedStateSharingApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,yCAAyC,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"SdPlatformSavedStateSharingApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformSavedStateSharingApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,yCAAyC,EAAE,gDAAgD,EAAE,MAAM,qCAAqC,CAAC;AACvL,OAAO,EAAU,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAGjL,oBAAY,gDAAgD;IAExD,IAAI,SAAS;IACb,UAAU,gBAAgB;IAC1B,QAAQ,aAAa;CACxB;AAED,oBAAY,0CAA0C,GAAG,yBAAyB,CAAC,gDAAgD,CAAC,CAAC;AAErI;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,YAAY;IAE5D,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAED;;;;QAII;IACG,MAAM,CAAC,IAAI,EAAE,yCAAyC,GAAG,OAAO,CAAC,sBAAsB,CAAC,mCAAmC,CAAC,CAAC;IAKpI;;;;OAIG;IACI,MAAM,CAAC,sBAAsB,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKhF;;;;;QAKI;IACG,sBAAsB,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC,CAAC;IAKlJ;;;;OAIG;IACI,KAAK,CAAC,KAAK,CAAC,EAAE,0CAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,mCAAmC,CAAC,CAAC;IAKvI;;;;;OAKG;IACI,iBAAiB,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,0CAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,mCAAmC,CAAC,CAAC;IAK3K;;;;;OAKG;IACI,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,0CAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,mCAAmC,CAAC,CAAC;IAM9J;;;;OAIG;IACK,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAI,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC,CAAC;CAK7I"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/sdk.platform-api-sdk-v1",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.15",
|
|
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.9.
|
|
42
|
+
"@shapediver/api.platform-api-dto-v1": "^2.9.15",
|
|
43
43
|
"@types/q": "^1.5.5",
|
|
44
44
|
"axios": "^0.26.1",
|
|
45
45
|
"dotenv": "^16.0.0",
|
|
@@ -55,5 +55,6 @@
|
|
|
55
55
|
"webpack": "^4.46.0",
|
|
56
56
|
"webpack-cli": "4.9.2",
|
|
57
57
|
"webpack-dev-server": "4.8.1"
|
|
58
|
-
}
|
|
58
|
+
},
|
|
59
|
+
"gitHead": "6f7a876b2913e0d64ad511f946418f6b94cb42cc"
|
|
59
60
|
}
|