@shapediver/sdk.platform-api-sdk-v1 2.15.0 → 2.15.2

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.
Files changed (157) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/dist/SdPlatformErrors.d.ts +0 -0
  4. package/dist/SdPlatformErrors.d.ts.map +0 -0
  5. package/dist/SdPlatformErrors.js +147 -0
  6. package/dist/SdPlatformErrors.js.map +1 -0
  7. package/dist/SdPlatformSdk.d.ts +0 -0
  8. package/dist/SdPlatformSdk.d.ts.map +0 -0
  9. package/dist/SdPlatformSdk.js +265 -0
  10. package/dist/SdPlatformSdk.js.map +1 -0
  11. package/dist/SdPlatformSdkContext.d.ts +0 -0
  12. package/dist/SdPlatformSdkContext.d.ts.map +0 -0
  13. package/dist/SdPlatformSdkContext.js +88 -0
  14. package/dist/SdPlatformSdkContext.js.map +1 -0
  15. package/dist/SdPlatformSdkCreate.d.ts +0 -0
  16. package/dist/SdPlatformSdkCreate.d.ts.map +0 -0
  17. package/dist/SdPlatformSdkCreate.js +20 -0
  18. package/dist/SdPlatformSdkCreate.js.map +1 -0
  19. package/dist/api/SdPlatformRequestId.d.ts +1 -0
  20. package/dist/api/SdPlatformRequestId.d.ts.map +1 -1
  21. package/dist/api/SdPlatformRequestId.js +145 -0
  22. package/dist/api/SdPlatformRequestId.js.map +1 -0
  23. package/dist/api/SdPlatformSdkApi.d.ts +0 -0
  24. package/dist/api/SdPlatformSdkApi.d.ts.map +0 -0
  25. package/dist/api/SdPlatformSdkApi.js +173 -0
  26. package/dist/api/SdPlatformSdkApi.js.map +1 -0
  27. package/dist/api/SdPlatformSdkConfig.d.ts +0 -0
  28. package/dist/api/SdPlatformSdkConfig.d.ts.map +0 -0
  29. package/dist/api/SdPlatformSdkConfig.js +21 -0
  30. package/dist/api/SdPlatformSdkConfig.js.map +1 -0
  31. package/dist/api/SdPlatformSdkErrorMapping.d.ts +0 -0
  32. package/dist/api/SdPlatformSdkErrorMapping.d.ts.map +0 -0
  33. package/dist/api/SdPlatformSdkErrorMapping.js +84 -0
  34. package/dist/api/SdPlatformSdkErrorMapping.js.map +1 -0
  35. package/dist/auth/SdPlatformAuthServiceApi.d.ts +0 -0
  36. package/dist/auth/SdPlatformAuthServiceApi.d.ts.map +0 -0
  37. package/dist/auth/SdPlatformAuthServiceApi.js +225 -0
  38. package/dist/auth/SdPlatformAuthServiceApi.js.map +1 -0
  39. package/dist/index.d.ts +0 -0
  40. package/dist/index.d.ts.map +0 -0
  41. package/dist/index.js +45 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/resources/SdPlatformApiClientsApi.d.ts +0 -0
  44. package/dist/resources/SdPlatformApiClientsApi.d.ts.map +0 -0
  45. package/dist/resources/SdPlatformApiClientsApi.js +54 -0
  46. package/dist/resources/SdPlatformApiClientsApi.js.map +1 -0
  47. package/dist/resources/SdPlatformApiTokenApi.d.ts +0 -0
  48. package/dist/resources/SdPlatformApiTokenApi.d.ts.map +0 -0
  49. package/dist/resources/SdPlatformApiTokenApi.js +58 -0
  50. package/dist/resources/SdPlatformApiTokenApi.js.map +1 -0
  51. package/dist/resources/SdPlatformBackendSystemApi.d.ts +0 -0
  52. package/dist/resources/SdPlatformBackendSystemApi.d.ts.map +0 -0
  53. package/dist/resources/SdPlatformBackendSystemApi.js +55 -0
  54. package/dist/resources/SdPlatformBackendSystemApi.js.map +1 -0
  55. package/dist/resources/SdPlatformBookmarkApi.d.ts +0 -0
  56. package/dist/resources/SdPlatformBookmarkApi.d.ts.map +0 -0
  57. package/dist/resources/SdPlatformBookmarkApi.js +34 -0
  58. package/dist/resources/SdPlatformBookmarkApi.js.map +1 -0
  59. package/dist/resources/SdPlatformChargebeeApi.d.ts +0 -0
  60. package/dist/resources/SdPlatformChargebeeApi.d.ts.map +0 -0
  61. package/dist/resources/SdPlatformChargebeeApi.js +57 -0
  62. package/dist/resources/SdPlatformChargebeeApi.js.map +1 -0
  63. package/dist/resources/SdPlatformDocumentApi.d.ts +0 -0
  64. package/dist/resources/SdPlatformDocumentApi.d.ts.map +0 -0
  65. package/dist/resources/SdPlatformDocumentApi.js +86 -0
  66. package/dist/resources/SdPlatformDocumentApi.js.map +1 -0
  67. package/dist/resources/SdPlatformDomainApi.d.ts +0 -0
  68. package/dist/resources/SdPlatformDomainApi.d.ts.map +0 -0
  69. package/dist/resources/SdPlatformDomainApi.js +63 -0
  70. package/dist/resources/SdPlatformDomainApi.js.map +1 -0
  71. package/dist/resources/SdPlatformHttpLogApi.d.ts +0 -0
  72. package/dist/resources/SdPlatformHttpLogApi.d.ts.map +0 -0
  73. package/dist/resources/SdPlatformHttpLogApi.js +23 -0
  74. package/dist/resources/SdPlatformHttpLogApi.js.map +1 -0
  75. package/dist/resources/SdPlatformImageApi.d.ts +0 -0
  76. package/dist/resources/SdPlatformImageApi.d.ts.map +0 -0
  77. package/dist/resources/SdPlatformImageApi.js +55 -0
  78. package/dist/resources/SdPlatformImageApi.js.map +1 -0
  79. package/dist/resources/SdPlatformJobLogApi.d.ts +0 -0
  80. package/dist/resources/SdPlatformJobLogApi.d.ts.map +0 -0
  81. package/dist/resources/SdPlatformJobLogApi.js +23 -0
  82. package/dist/resources/SdPlatformJobLogApi.js.map +1 -0
  83. package/dist/resources/SdPlatformModelApi.d.ts +0 -0
  84. package/dist/resources/SdPlatformModelApi.d.ts.map +0 -0
  85. package/dist/resources/SdPlatformModelApi.js +105 -0
  86. package/dist/resources/SdPlatformModelApi.js.map +1 -0
  87. package/dist/resources/SdPlatformModelSharingApi.d.ts +0 -0
  88. package/dist/resources/SdPlatformModelSharingApi.d.ts.map +0 -0
  89. package/dist/resources/SdPlatformModelSharingApi.js +88 -0
  90. package/dist/resources/SdPlatformModelSharingApi.js.map +1 -0
  91. package/dist/resources/SdPlatformModelTokenApi.d.ts +0 -0
  92. package/dist/resources/SdPlatformModelTokenApi.d.ts.map +0 -0
  93. package/dist/resources/SdPlatformModelTokenApi.js +23 -0
  94. package/dist/resources/SdPlatformModelTokenApi.js.map +1 -0
  95. package/dist/resources/SdPlatformModelTransferApi.d.ts +0 -0
  96. package/dist/resources/SdPlatformModelTransferApi.d.ts.map +0 -0
  97. package/dist/resources/SdPlatformModelTransferApi.js +65 -0
  98. package/dist/resources/SdPlatformModelTransferApi.js.map +1 -0
  99. package/dist/resources/SdPlatformNotificationApi.d.ts +0 -0
  100. package/dist/resources/SdPlatformNotificationApi.d.ts.map +0 -0
  101. package/dist/resources/SdPlatformNotificationApi.js +86 -0
  102. package/dist/resources/SdPlatformNotificationApi.js.map +1 -0
  103. package/dist/resources/SdPlatformOpenIDProviderApi.d.ts +0 -0
  104. package/dist/resources/SdPlatformOpenIDProviderApi.d.ts.map +0 -0
  105. package/dist/resources/SdPlatformOpenIDProviderApi.js +58 -0
  106. package/dist/resources/SdPlatformOpenIDProviderApi.js.map +1 -0
  107. package/dist/resources/SdPlatformOrganizationAnalyticsApi.d.ts +0 -0
  108. package/dist/resources/SdPlatformOrganizationAnalyticsApi.d.ts.map +0 -0
  109. package/dist/resources/SdPlatformOrganizationAnalyticsApi.js +23 -0
  110. package/dist/resources/SdPlatformOrganizationAnalyticsApi.js.map +1 -0
  111. package/dist/resources/SdPlatformOrganizationApi.d.ts +7 -1
  112. package/dist/resources/SdPlatformOrganizationApi.d.ts.map +1 -1
  113. package/dist/resources/SdPlatformOrganizationApi.js +139 -0
  114. package/dist/resources/SdPlatformOrganizationApi.js.map +1 -0
  115. package/dist/resources/SdPlatformPolicyApi.d.ts +0 -0
  116. package/dist/resources/SdPlatformPolicyApi.d.ts.map +0 -0
  117. package/dist/resources/SdPlatformPolicyApi.js +56 -0
  118. package/dist/resources/SdPlatformPolicyApi.js.map +1 -0
  119. package/dist/resources/SdPlatformSavedStateApi.d.ts +0 -0
  120. package/dist/resources/SdPlatformSavedStateApi.d.ts.map +0 -0
  121. package/dist/resources/SdPlatformSavedStateApi.js +69 -0
  122. package/dist/resources/SdPlatformSavedStateApi.js.map +1 -0
  123. package/dist/resources/SdPlatformSavedStateSharingApi.d.ts +0 -0
  124. package/dist/resources/SdPlatformSavedStateSharingApi.d.ts.map +0 -0
  125. package/dist/resources/SdPlatformSavedStateSharingApi.js +88 -0
  126. package/dist/resources/SdPlatformSavedStateSharingApi.js.map +1 -0
  127. package/dist/resources/SdPlatformStargateApi.d.ts +0 -0
  128. package/dist/resources/SdPlatformStargateApi.d.ts.map +0 -0
  129. package/dist/resources/SdPlatformStargateApi.js +21 -0
  130. package/dist/resources/SdPlatformStargateApi.js.map +1 -0
  131. package/dist/resources/SdPlatformTagApi.d.ts +0 -0
  132. package/dist/resources/SdPlatformTagApi.d.ts.map +0 -0
  133. package/dist/resources/SdPlatformTagApi.js +35 -0
  134. package/dist/resources/SdPlatformTagApi.js.map +1 -0
  135. package/dist/resources/SdPlatformUserAnalyticsApi.d.ts +0 -0
  136. package/dist/resources/SdPlatformUserAnalyticsApi.d.ts.map +0 -0
  137. package/dist/resources/SdPlatformUserAnalyticsApi.js +23 -0
  138. package/dist/resources/SdPlatformUserAnalyticsApi.js.map +1 -0
  139. package/dist/resources/SdPlatformUserApi.d.ts +0 -0
  140. package/dist/resources/SdPlatformUserApi.d.ts.map +0 -0
  141. package/dist/resources/SdPlatformUserApi.js +118 -0
  142. package/dist/resources/SdPlatformUserApi.js.map +1 -0
  143. package/dist/resources/SdPlatformWebhookApi.d.ts +0 -0
  144. package/dist/resources/SdPlatformWebhookApi.d.ts.map +0 -0
  145. package/dist/resources/SdPlatformWebhookApi.js +67 -0
  146. package/dist/resources/SdPlatformWebhookApi.js.map +1 -0
  147. package/dist/resources/commons/FilterBuilder.d.ts +0 -0
  148. package/dist/resources/commons/FilterBuilder.d.ts.map +0 -0
  149. package/dist/resources/commons/FilterBuilder.js +65 -0
  150. package/dist/resources/commons/FilterBuilder.js.map +1 -0
  151. package/dist/resources/commons/ResourcesApi.d.ts +0 -0
  152. package/dist/resources/commons/ResourcesApi.d.ts.map +0 -0
  153. package/dist/resources/commons/ResourcesApi.js +112 -0
  154. package/dist/resources/commons/ResourcesApi.js.map +1 -0
  155. package/package.json +5 -9
  156. package/dist/bundle.js +0 -6859
  157. package/dist/bundle.node.js +0 -8946
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformNotificationApi = exports.SdPlatformNotificationSummaryEmbeddableFields = exports.SdPlatformNotificationEmbeddableFields = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ var SdPlatformNotificationEmbeddableFields;
7
+ (function (SdPlatformNotificationEmbeddableFields) {
8
+ SdPlatformNotificationEmbeddableFields["Receiver"] = "receiver";
9
+ SdPlatformNotificationEmbeddableFields["User"] = "user";
10
+ SdPlatformNotificationEmbeddableFields["Model"] = "model";
11
+ SdPlatformNotificationEmbeddableFields["SavedState"] = "saved_state";
12
+ SdPlatformNotificationEmbeddableFields["Document"] = "document";
13
+ SdPlatformNotificationEmbeddableFields["Organization"] = "organization";
14
+ })(SdPlatformNotificationEmbeddableFields = exports.SdPlatformNotificationEmbeddableFields || (exports.SdPlatformNotificationEmbeddableFields = {}));
15
+ var SdPlatformNotificationSummaryEmbeddableFields;
16
+ (function (SdPlatformNotificationSummaryEmbeddableFields) {
17
+ SdPlatformNotificationSummaryEmbeddableFields["Total"] = "total";
18
+ SdPlatformNotificationSummaryEmbeddableFields["Unread"] = "unread";
19
+ })(SdPlatformNotificationSummaryEmbeddableFields = exports.SdPlatformNotificationSummaryEmbeddableFields || (exports.SdPlatformNotificationSummaryEmbeddableFields = {}));
20
+ /**
21
+ * Operations for querying, reading/unreading, creating notifications.
22
+ */
23
+ class SdPlatformNotificationApi extends ResourcesApi_1.ResourcesApi {
24
+ get __resourcePath() {
25
+ return "notifications";
26
+ }
27
+ /**
28
+ * Query the notifications.
29
+ * @param body {@link SdPlatformNotificationQueryParameters} notifications query body.
30
+ * @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseNotification} as data result.
31
+ */
32
+ query(body = {}) {
33
+ return super.__query(SdPlatformRequestId_1.RequestId.NotificationQuery, body);
34
+ }
35
+ /**
36
+ * Creates the notification.
37
+ * @param body {@link SdPlatformRequestNotificationCreate}
38
+ * @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseNotification} as result.
39
+ */
40
+ create(body) {
41
+ return super.__post(SdPlatformRequestId_1.RequestId.NotificationCreate, body);
42
+ }
43
+ /**
44
+ * Updates the notification-
45
+ * @param id - the id of a notification.
46
+ * @param body {@link SdPlatformRequestNotificationPatch} body of a notification.
47
+ * @returns the {@link SdPlatformPatchResponse} response with {@link SdPlatformResponseNotification} as result.
48
+ */
49
+ patch(id, body) {
50
+ return this.__patch(SdPlatformRequestId_1.RequestId.NotificationPatch, id, body);
51
+ }
52
+ /**
53
+ * Deletes the notification.
54
+ * @param id - the id of a notification.
55
+ * @returns the {@link SdPlatformDeleteResponse}
56
+ */
57
+ delete(id) {
58
+ return this.__delete(SdPlatformRequestId_1.RequestId.NotificationDelete, id);
59
+ }
60
+ /**
61
+ * Gets the summary of notifications.
62
+ * Gives information about total number of notifications and unread number of notifications.
63
+ * @param embed - array of {@link SdPlatformNotificationSummaryEmbeddableFields} embed properties.
64
+ * @returns the {@link SdPlatformGetResponse} response with {@link SdPlatformResponseNotificationSummary} as data.
65
+ */
66
+ summary(embed) {
67
+ return super.__get(SdPlatformRequestId_1.RequestId.NotificationSummary, 'summary', embed);
68
+ }
69
+ /**
70
+ * Gets the notification by id.
71
+ * @param id - the id of notification.
72
+ * @returns the {@link SdPlatformGetResponse} with {@link SdPlatformResponseNotification} as data or one of it's derived classes.
73
+ */
74
+ get(id) {
75
+ return super.__get(SdPlatformRequestId_1.RequestId.NotificationGet, id);
76
+ }
77
+ /**
78
+ * Marks all notifications of signed in user as read.
79
+ * @returns the {@link SdPlatformPostResponse} response.
80
+ */
81
+ markAllAsRead() {
82
+ return super.__action(SdPlatformRequestId_1.RequestId.NotificationReadAll, ResourcesApi_1.Action.Post, 'read_all', {});
83
+ }
84
+ }
85
+ exports.SdPlatformNotificationApi = SdPlatformNotificationApi;
86
+ //# sourceMappingURL=SdPlatformNotificationApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformNotificationApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformNotificationApi.ts"],"names":[],"mappings":";;;AACA,oEAAuD;AACvD,yDAA8D;AAU9D,IAAY,sCAQX;AARD,WAAY,sCAAsC;IAE9C,+DAAqB,CAAA;IACrB,uDAAa,CAAA;IACb,yDAAe,CAAA;IACf,oEAA0B,CAAA;IAC1B,+DAAqB,CAAA;IACrB,uEAA6B,CAAA;AACjC,CAAC,EARW,sCAAsC,GAAtC,8CAAsC,KAAtC,8CAAsC,QAQjD;AAED,IAAY,6CAIX;AAJD,WAAY,6CAA6C;IAErD,gEAAe,CAAA;IACf,kEAAiB,CAAA;AACrB,CAAC,EAJW,6CAA6C,GAA7C,qDAA6C,KAA7C,qDAA6C,QAIxD;AAKD;;GAEG;AACH,MAAa,yBAA0B,SAAQ,2BAAY;IAEvD,IAAc,cAAc;QAExB,OAAO,eAAe,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAA8C,EAAE;QAEzD,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,IAAyC;QAEnD,OAAO,KAAK,CAAC,MAAM,CAAC,+BAAS,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,EAAU,EAAE,IAAwC;QAE7D,OAAO,IAAI,CAAC,OAAO,CAAC,+BAAS,CAAC,iBAAiB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,EAAU;QAEpB,OAAO,IAAI,CAAC,QAAQ,CAAC,+BAAS,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;OAKG;IACI,OAAO,CAAC,KAA2D;QAEtE,OAAO,KAAK,CAAC,KAAK,CAAC,+BAAS,CAAC,mBAAmB,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACxE,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAqC,EAAU;QAErD,OAAO,KAAK,CAAC,KAAK,CAAC,+BAAS,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IACI,aAAa;QAEhB,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,mBAAmB,EAAE,qBAAM,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;IACtF,CAAC;CACJ;AA7ED,8DA6EC"}
File without changes
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformOpenIDProviderApi = exports.SdPlatformOpenIDProviderEmbeddableFields = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ var SdPlatformOpenIDProviderEmbeddableFields;
7
+ (function (SdPlatformOpenIDProviderEmbeddableFields) {
8
+ SdPlatformOpenIDProviderEmbeddableFields["Organization"] = "organization";
9
+ })(SdPlatformOpenIDProviderEmbeddableFields = exports.SdPlatformOpenIDProviderEmbeddableFields || (exports.SdPlatformOpenIDProviderEmbeddableFields = {}));
10
+ /**
11
+ * Operations for OpenID providers.
12
+ */
13
+ class SdPlatformOpenIDProviderApi extends ResourcesApi_1.ResourcesApi {
14
+ get __resourcePath() {
15
+ return "openid_providers";
16
+ }
17
+ /**
18
+ * Get OpenID Provider by id.
19
+ * @param id - openid provider id.
20
+ * @param embed - embeddable resources.
21
+ */
22
+ get(id, embed) {
23
+ return super.__get(SdPlatformRequestId_1.RequestId.OpenIDProviderGet, id, embed);
24
+ }
25
+ /**
26
+ * Query OpenID providers.
27
+ * @param body
28
+ */
29
+ query(body = {}) {
30
+ return super.__query(SdPlatformRequestId_1.RequestId.OpenIDProviderQuery, body);
31
+ }
32
+ /**
33
+ * Create an OpenID provider.
34
+ * @param body
35
+ * @returns
36
+ */
37
+ create(body) {
38
+ return super.__post(SdPlatformRequestId_1.RequestId.OpenIDProviderCreate, body);
39
+ }
40
+ /**
41
+ * Patch an OpenID provider.
42
+ * @param id - id of the OpenID provider
43
+ * @param body - properties to patch
44
+ */
45
+ patch(id, body) {
46
+ return super.__patch(SdPlatformRequestId_1.RequestId.OpenIDProviderPatch, id, body);
47
+ }
48
+ /**
49
+ * Delete an OpenID provider..
50
+ * @param id
51
+ * @returns
52
+ */
53
+ delete(id) {
54
+ return super.__delete(SdPlatformRequestId_1.RequestId.OpenIDPRoviderDelete, id);
55
+ }
56
+ }
57
+ exports.SdPlatformOpenIDProviderApi = SdPlatformOpenIDProviderApi;
58
+ //# sourceMappingURL=SdPlatformOpenIDProviderApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformOpenIDProviderApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformOpenIDProviderApi.ts"],"names":[],"mappings":";;;AACA,oEAAuD;AACvD,yDAAsD;AAEtD,IAAY,wCAGX;AAHD,WAAY,wCAAwC;IAEhD,yEAA6B,CAAA;AACjC,CAAC,EAHW,wCAAwC,GAAxC,gDAAwC,KAAxC,gDAAwC,QAGnD;AAKD;;GAEG;AACH,MAAa,2BAA4B,SAAQ,2BAAY;IAEzD,IAAc,cAAc;QAExB,OAAO,kBAAkB,CAAC;IAC9B,CAAC;IAED;;;;MAIE;IACK,GAAG,CAAuC,EAAU,EAAE,KAAuD;QAEhH,OAAO,KAAK,CAAC,KAAK,CAAC,+BAAS,CAAC,iBAAiB,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;IAGD;;;OAGG;IACI,KAAK,CAAuC,OAAgD,EAAE;QAEjG,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,IAA2C;QAErD,OAAO,KAAK,CAAC,MAAM,CAAC,+BAAS,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAuC,EAAU,EAAE,IAA0C;QAErG,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,mBAAmB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,EAAU;QAEpB,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;CAEJ;AAzDD,kEAyDC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformOrganizationAnalyticsApi = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ /**
7
+ * Analytics for organizations.
8
+ */
9
+ class SdPlatformOrganizationAnalyticsApi extends ResourcesApi_1.ResourcesApi {
10
+ get __resourcePath() {
11
+ return "organization_model_sessions";
12
+ }
13
+ /**
14
+ * Query session analytics aggregated per user.
15
+ * @param body - {@link SdPlatformQueryParameters} query body.
16
+ * @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseOrganizationModelSessionAnalyticsPerTimestamp} as query data response.
17
+ */
18
+ query(body = {}) {
19
+ return super.__query(SdPlatformRequestId_1.RequestId.OrganizationModelSessionsQuery, body);
20
+ }
21
+ }
22
+ exports.SdPlatformOrganizationAnalyticsApi = SdPlatformOrganizationAnalyticsApi;
23
+ //# sourceMappingURL=SdPlatformOrganizationAnalyticsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformOrganizationAnalyticsApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformOrganizationAnalyticsApi.ts"],"names":[],"mappings":";;;AAEA,oEAAuD;AACvD,yDAAsD;AAGtD;;GAEG;AACH,MAAa,kCAAmC,SAAQ,2BAAY;IAEhE,IAAc,cAAc;QAExB,OAAO,6BAA6B,CAAC;IACzC,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAA2C,EAAE;QAEtD,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;CAEJ;AAjBD,gFAiBC"}
@@ -1,5 +1,5 @@
1
1
  import { ResourcesApi } from "./commons/ResourcesApi";
2
- import { SdPlatformResponseNotification, SdPlatformRequestOrganizationCreate, SdPlatformRequestOrganizationPatchAny, SdPlatformResponseOrganizationPublic, SdPlatformResponseOrganizationOwner, SdPlatformResponseOrganizationAdministrator, SdPlatformOrganizationMemberRole } from "@shapediver/api.platform-api-dto-v1";
2
+ import { SdPlatformResponseNotification, SdPlatformRequestOrganizationCreate, SdPlatformRequestOrganizationPatchAny, SdPlatformResponseOrganizationPublic, SdPlatformResponseOrganizationOwner, SdPlatformResponseOrganizationAdministrator, SdPlatformOrganizationMemberRole, SdPlatformResponseIdentifySSO } from "@shapediver/api.platform-api-dto-v1";
3
3
  import { SdPlatformQueryParameters, SdPlatformGetResponse, SdPlatformQueryResponse, SdPlatformPatchResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
4
4
  export declare enum SdPlatformOrganizationEmbeddableFields {
5
5
  AccessDomains = "accessdomains",
@@ -92,5 +92,11 @@ export declare class SdPlatformOrganizationApi extends ResourcesApi {
92
92
  * @param email
93
93
  */
94
94
  invitationByEmail(organization_id: string, email: string): Promise<SdPlatformPostResponse<void>>;
95
+ /**
96
+ * Get the SSO provider name of organization.
97
+ * @param email - organization 'email' or 'domain' of an organization should be passed in.
98
+ * @returns
99
+ */
100
+ identifySSO(email: string): Promise<SdPlatformGetResponse<SdPlatformResponseIdentifySSO>>;
95
101
  }
96
102
  //# sourceMappingURL=SdPlatformOrganizationApi.d.ts.map
@@ -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,EAAgC,MAAM,qCAAqC,CAAA;AACxV,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;IACpC,cAAc,oBAAoB;CACrC;AAED,MAAM,MAAM,qCAAqC,GAAG,yBAAyB,CAAC,sCAAsC,CAAC,CAAA;AAErH;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,YAAY;IAEvD,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAED;;;;;MAKE;IACK,GAAG,CAAC,CAAC,GAAG,oCAAoC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,sCAAsC,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAK1J;;;;OAIG;IACI,KAAK,CAAC,CAAC,GAAG,oCAAoC,EAAE,IAAI,GAAE,qCAA0C,GAAG,OAAO,CAAC,uBAAuB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2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformOrganizationApi = exports.SdPlatformOrganizationEmbeddableFields = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ var SdPlatformOrganizationEmbeddableFields;
7
+ (function (SdPlatformOrganizationEmbeddableFields) {
8
+ SdPlatformOrganizationEmbeddableFields["AccessDomains"] = "accessdomains";
9
+ SdPlatformOrganizationEmbeddableFields["BackendSystem"] = "backend_system";
10
+ SdPlatformOrganizationEmbeddableFields["Members"] = "members";
11
+ SdPlatformOrganizationEmbeddableFields["ChargebeeCustomer"] = "chargebee_customer";
12
+ SdPlatformOrganizationEmbeddableFields["ChargebeeSubscription"] = "chargebee_subscription";
13
+ SdPlatformOrganizationEmbeddableFields["ChargebeePlan"] = "chargebee_plan";
14
+ SdPlatformOrganizationEmbeddableFields["ChargebeeAddons"] = "chargebee_addons";
15
+ SdPlatformOrganizationEmbeddableFields["OpenIdProvider"] = "openid_provider";
16
+ })(SdPlatformOrganizationEmbeddableFields = exports.SdPlatformOrganizationEmbeddableFields || (exports.SdPlatformOrganizationEmbeddableFields = {}));
17
+ /**
18
+ * Operations for organizations.
19
+ */
20
+ class SdPlatformOrganizationApi extends ResourcesApi_1.ResourcesApi {
21
+ get __resourcePath() {
22
+ return "organizations";
23
+ }
24
+ /**
25
+ * Get organization by id.
26
+ * @param id - organization id.
27
+ * @param embed array of {@link SdPlatformOrganizationEmbeddableFields} embeddable resources.
28
+ * @returns the {@link SdPlatformGetResponse} response with {@link SdPlatformResponseOrganizationPublic} or derived interfaces as result.
29
+ */
30
+ get(id, embed) {
31
+ return super.__get(SdPlatformRequestId_1.RequestId.OrganizationGet, id, embed);
32
+ }
33
+ /**
34
+ * Query organizations.
35
+ * @param body {@link SdPlatformOrganizationQueryParameters}
36
+ * @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseOrganizationPublic} or one of it's derived interfaces as data result.
37
+ */
38
+ query(body = {}) {
39
+ return super.__query(SdPlatformRequestId_1.RequestId.OrganizationQuery, body);
40
+ }
41
+ /**
42
+ * Create an organization, and make the calling user owner of the organization. Will fail in case the user is member of an organization already.
43
+ * @param body {@see SdPlatformRequestOrganizationCreate}
44
+ * @returns the {@link SdPlatformPostResponse} with {@see SdPlatformResponseOrganizationOwner} as data.
45
+ */
46
+ create(body) {
47
+ return super.__post(SdPlatformRequestId_1.RequestId.OrganizationCreate, body);
48
+ }
49
+ /**
50
+ * Patch an organization.
51
+ * @param id - id of the organization
52
+ * @param body {@link SdPlatformRequestOrganizationPatchAny} properties to patch
53
+ * @response the {@link SdPlatformPatchResponse} with {@link SdPlatformResponseOrganizationAdministrator} or one of it's derived interfaces as data.
54
+ */
55
+ patch(id, body) {
56
+ return super.__patch(SdPlatformRequestId_1.RequestId.OrganizationPatch, id, body);
57
+ }
58
+ /**
59
+ * Delete an organization.
60
+ * @param id
61
+ * @returns
62
+ */
63
+ delete(id) {
64
+ return super.__delete(SdPlatformRequestId_1.RequestId.OrganizationDelete, id);
65
+ }
66
+ /**
67
+ * Create organization invitation.
68
+ * @param organization_id
69
+ * @param receiver_id
70
+ * @returns
71
+ */
72
+ createOrganizationInvitation(organization_id, receiver_id) {
73
+ return super.__action(SdPlatformRequestId_1.RequestId.OrganizationInvitationCreate, ResourcesApi_1.Action.Post, `${organization_id}/invitation/${receiver_id}`, {});
74
+ }
75
+ /**
76
+ * Delete organization invitation.
77
+ * @param organization_id
78
+ * @param id receiver id OR notification id in case of email notification
79
+ * @returns
80
+ */
81
+ deleteOrganizationInvitation(organization_id, id) {
82
+ return super.__action(SdPlatformRequestId_1.RequestId.OrganizationInvitationDelete, ResourcesApi_1.Action.Delete, `${organization_id}/invitation/${id}`, {});
83
+ }
84
+ /**
85
+ * Get organization invitations.
86
+ * @param organization_id
87
+ * @returns
88
+ */
89
+ getOrganizationInvitations(organization_id) {
90
+ return super.__action(SdPlatformRequestId_1.RequestId.OrganizationInvitationsGet, ResourcesApi_1.Action.Get, `${organization_id}/invitation`, {});
91
+ }
92
+ /**
93
+ * Accept organization invitation.
94
+ * @param organization_id
95
+ * @returns
96
+ */
97
+ acceptOrganizationInvitation(organization_id) {
98
+ return super.__action(SdPlatformRequestId_1.RequestId.OrganizationInvitationAccept, ResourcesApi_1.Action.Post, `${organization_id}/invitation_accept`, {});
99
+ }
100
+ /**
101
+ * Deny organization invitation.
102
+ * @param organization_id
103
+ * @returns
104
+ */
105
+ denyOrganizationInvitation(organization_id) {
106
+ return super.__action(SdPlatformRequestId_1.RequestId.OrganizationInvitationDeny, ResourcesApi_1.Action.Post, `${organization_id}/invitation_deny`, {});
107
+ }
108
+ /**
109
+ * Patch role of organization member.
110
+ * @param email
111
+ */
112
+ patchMemberRole(organization_id, user_id, organization_role) {
113
+ return super.__action(SdPlatformRequestId_1.RequestId.OrganizationPatchMemberRole, ResourcesApi_1.Action.Patch, `${organization_id}/user/${user_id}`, {
114
+ organization_role,
115
+ });
116
+ }
117
+ /**
118
+ * Invite user to organizatio by email.
119
+ * @param organization_id
120
+ * @param email
121
+ */
122
+ invitationByEmail(organization_id, email) {
123
+ return super.__action(SdPlatformRequestId_1.RequestId.OrganizationInvitationByEmail, ResourcesApi_1.Action.Post, `${organization_id}/invitation_by_email`, {
124
+ email: email
125
+ });
126
+ }
127
+ /**
128
+ * Get the SSO provider name of organization.
129
+ * @param email - organization 'email' or 'domain' of an organization should be passed in.
130
+ * @returns
131
+ */
132
+ identifySSO(email) {
133
+ return super.__action(SdPlatformRequestId_1.RequestId.OrganizationIdentifySSO, ResourcesApi_1.Action.Get, `identify_sso`, {
134
+ email: email
135
+ });
136
+ }
137
+ }
138
+ exports.SdPlatformOrganizationApi = SdPlatformOrganizationApi;
139
+ //# sourceMappingURL=SdPlatformOrganizationApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformOrganizationApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformOrganizationApi.ts"],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,+BAAS,CAAC,6BAA6B,EAAE,qBAAM,CAAC,IAAI,EAAE,GAAG,eAAe,sBAAsB,EAAE;YAClH,KAAK,EAAE,KAAK;SACf,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,WAAW,CAAC,KAAa;QAE5B,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,uBAAuB,EAAE,qBAAM,CAAC,GAAG,EAAE,cAAc,EAAE;YACjF,KAAK,EAAE,KAAK;SACf,CAAC,CAAC;IACP,CAAC;CACJ;AAnJD,8DAmJC"}
File without changes
File without changes
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformPolicyApi = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ /**
7
+ * Operations for policies.
8
+ */
9
+ class SdPlatformPolicyApi extends ResourcesApi_1.ResourcesApi {
10
+ get __resourcePath() {
11
+ return "policies";
12
+ }
13
+ /**
14
+ * The platform policy api.
15
+ * @param body {@see SdPlatformPolicyQueryParameters} query body.
16
+ * @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponsePolicy} as response.
17
+ */
18
+ query(body = {}) {
19
+ return super.__query(SdPlatformRequestId_1.RequestId.PolicyQuery, body);
20
+ }
21
+ /**
22
+ * Get information about a policy based on its id or alias
23
+ * @param id_or_alias - id or an alias.
24
+ * @returns the {@link SdPlatformGetResponse} with {@link SdPlatformResponsePolicy} as response.
25
+ */
26
+ get(id_or_alias) {
27
+ return super.__get(SdPlatformRequestId_1.RequestId.PolicyGet, id_or_alias);
28
+ }
29
+ /**
30
+ * Creates a platform policy.
31
+ * @param body {@link SdPlatformRequestPolicyCreate}
32
+ * @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponsePolicy} as response.
33
+ */
34
+ create(body) {
35
+ return super.__post(SdPlatformRequestId_1.RequestId.PolicyCreate, body);
36
+ }
37
+ /**
38
+ * Updates a platform policy.
39
+ * @param id - the policy id.
40
+ * @param body {@link SdPlatformRequestPolicyPatch} of patch request.
41
+ * @returns the {@link SdPlatformPatchResponse} with {@link SdPlatformResponsePolicy} as data parameter.
42
+ */
43
+ patch(id, body) {
44
+ return this.__patch(SdPlatformRequestId_1.RequestId.PolicyPatch, id, body);
45
+ }
46
+ /**
47
+ * Deletes the policy
48
+ * @param id - the policy id.
49
+ * @returns the {@link SdPlatformDeleteResponse}
50
+ */
51
+ delete(id) {
52
+ return this.__delete(SdPlatformRequestId_1.RequestId.PolicyDelete, id);
53
+ }
54
+ }
55
+ exports.SdPlatformPolicyApi = SdPlatformPolicyApi;
56
+ //# sourceMappingURL=SdPlatformPolicyApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformPolicyApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformPolicyApi.ts"],"names":[],"mappings":";;;AAAA,oEAAuD;AACvD,yDAAsD;AAQtD;;GAEG;AACH,MAAa,mBAAoB,SAAQ,2BAAY;IAEjD,IAAc,cAAc;QAExB,OAAO,UAAU,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAAwC,EAAE;QAEnD,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,WAAmB;QAE1B,OAAO,KAAK,CAAC,KAAK,CAAC,+BAAS,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IACzD,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,IAAmC;QAE7C,OAAO,KAAK,CAAC,MAAM,CAAC,+BAAS,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,EAAU,EAAE,IAAkC;QAEvD,OAAO,IAAI,CAAC,OAAO,CAAC,+BAAS,CAAC,WAAW,EAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,EAAU;QAEpB,OAAO,IAAI,CAAC,QAAQ,CAAC,+BAAS,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;CACJ;AAzDD,kDAyDC"}
File without changes
File without changes
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformSavedStateApi = exports.SdPlatformSavedStateGetEmbedFields = exports.SdPlatformSavedStateQueryEmbeddableFields = void 0;
4
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
5
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
6
+ var SdPlatformSavedStateQueryEmbeddableFields;
7
+ (function (SdPlatformSavedStateQueryEmbeddableFields) {
8
+ SdPlatformSavedStateQueryEmbeddableFields["Model"] = "model";
9
+ SdPlatformSavedStateQueryEmbeddableFields["Owner"] = "owner";
10
+ SdPlatformSavedStateQueryEmbeddableFields["Image"] = "image";
11
+ })(SdPlatformSavedStateQueryEmbeddableFields = exports.SdPlatformSavedStateQueryEmbeddableFields || (exports.SdPlatformSavedStateQueryEmbeddableFields = {}));
12
+ ;
13
+ var SdPlatformSavedStateGetEmbedFields;
14
+ (function (SdPlatformSavedStateGetEmbedFields) {
15
+ SdPlatformSavedStateGetEmbedFields["Model"] = "model";
16
+ SdPlatformSavedStateGetEmbedFields["Owner"] = "owner";
17
+ })(SdPlatformSavedStateGetEmbedFields = exports.SdPlatformSavedStateGetEmbedFields || (exports.SdPlatformSavedStateGetEmbedFields = {}));
18
+ /**
19
+ * Operations for saved states.
20
+ */
21
+ class SdPlatformSavedStateApi extends ResourcesApi_1.ResourcesApi {
22
+ get __resourcePath() {
23
+ return "saved_states";
24
+ }
25
+ /**
26
+ * Gets a saved state by id.
27
+ * @param id - saved state id.
28
+ * @param embed the array of {@link SdPlatformSavedStateGetEmbedFields} embeddable fields.
29
+ * @returns - the {@link SdPlatformGetResponse} with {@see SdPlatformResponseSavedStatePublic} or one of it's derived classes as response.
30
+ */
31
+ get(id, embed) {
32
+ return super.__get(SdPlatformRequestId_1.RequestId.SavedStateGet, id, embed);
33
+ }
34
+ /**
35
+ * Create a new saved state.
36
+ * @param body {@link SdPlatformRequestSavedStateCreate} create saved state body.
37
+ * @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseSavedStateOwner} or one of it's derived classes as data.
38
+ */
39
+ create(body) {
40
+ return super.__post(SdPlatformRequestId_1.RequestId.SavedStateCreate, body);
41
+ }
42
+ /**
43
+ * Patch a saved state.
44
+ * @param id
45
+ * @param body {@link SdPlatformRequestSavedStatePatch} saved state patch body.
46
+ * @returns the {@link SdPlatformPatchResponse} with {@link SdPlatformResponseSavedStateOwner} or one of it's derived classes as result.
47
+ */
48
+ patch(id, body) {
49
+ return super.__patch(SdPlatformRequestId_1.RequestId.SavedStatePatch, id, body);
50
+ }
51
+ /**
52
+ * Delete a saved state.
53
+ * @param id - the id of a saved state.
54
+ * @returns the {@link SdPlatformDeleteResponse} response.
55
+ */
56
+ delete(id) {
57
+ return super.__delete(SdPlatformRequestId_1.RequestId.SavedStateDelete, id);
58
+ }
59
+ /**
60
+ * Query saved states.
61
+ * @param params {@link SdPlatformSavedStateApiQueryParameters} query parameters.
62
+ * @returns the {@link SdPlatformQueryResponse} response with {@link SdPlatformResponseSavedStatePublic} or one of it's derived classes as response.
63
+ */
64
+ query(params) {
65
+ return super.__query(SdPlatformRequestId_1.RequestId.SavedStateQuery, params);
66
+ }
67
+ }
68
+ exports.SdPlatformSavedStateApi = SdPlatformSavedStateApi;
69
+ //# sourceMappingURL=SdPlatformSavedStateApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformSavedStateApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformSavedStateApi.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAGtD,oEAAuD;AAEvD,IAAY,yCAKX;AALD,WAAY,yCAAyC;IAEjD,4DAAe,CAAA;IACf,4DAAe,CAAA;IACf,4DAAe,CAAA;AACnB,CAAC,EALW,yCAAyC,GAAzC,iDAAyC,KAAzC,iDAAyC,QAKpD;AAAA,CAAC;AAGF,IAAY,kCAIX;AAJD,WAAY,kCAAkC;IAE1C,qDAAe,CAAA;IACf,qDAAe,CAAA;AACnB,CAAC,EAJW,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAI7C;AAID;;GAEG;AACH,MAAa,uBAAwB,SAAQ,2BAAY;IAErD,IAAc,cAAc;QAExB,OAAO,cAAc,CAAC;IAC1B,CAAC;IAED;;;;;QAKI;IACG,GAAG,CAAyC,EAAU,EAAE,KAAiD;QAE5G,OAAO,KAAK,CAAC,KAAK,CAAC,+BAAS,CAAC,aAAa,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAwC,IAAuC;QAExF,OAAO,KAAK,CAAC,MAAM,CAAC,+BAAS,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAwC,EAAU,EAAE,IAAsC;QAElG,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,eAAe,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,EAAU;QAEpB,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAyC,MAA+C;QAEhG,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;CACJ;AA1DD,0DA0DC"}
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformSavedStateSharingApi = exports.SdPlatformSavedStateSharingQueryEmbeddableFields = void 0;
4
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
5
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
6
+ var SdPlatformSavedStateSharingQueryEmbeddableFields;
7
+ (function (SdPlatformSavedStateSharingQueryEmbeddableFields) {
8
+ SdPlatformSavedStateSharingQueryEmbeddableFields["User"] = "user";
9
+ SdPlatformSavedStateSharingQueryEmbeddableFields["SavedState"] = "saved_state";
10
+ SdPlatformSavedStateSharingQueryEmbeddableFields["Provider"] = "provider";
11
+ })(SdPlatformSavedStateSharingQueryEmbeddableFields = exports.SdPlatformSavedStateSharingQueryEmbeddableFields || (exports.SdPlatformSavedStateSharingQueryEmbeddableFields = {}));
12
+ /**
13
+ * Operations for saved state sharing relationships.
14
+ */
15
+ class SdPlatformSavedStateSharingApi extends ResourcesApi_1.ResourcesApi {
16
+ get __resourcePath() {
17
+ return "saved_state_sharing";
18
+ }
19
+ /**
20
+ * Create a saved state sharing relationship
21
+ * @param body {@link SdPlatformResponseSavedStateSharingCreate}
22
+ * @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseSavedStateSharing} as response.
23
+ */
24
+ create(body) {
25
+ return super.__post(SdPlatformRequestId_1.RequestId.SavedStateCreate, body);
26
+ }
27
+ /**
28
+ * Create multiple sharings.
29
+ * @param body {@link SdPlatformRequestSavedStateSharingCreateMultiple}
30
+ * @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseModelSharing} as data response.
31
+ */
32
+ createMultiple(body) {
33
+ return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingCreateMultiple, ResourcesApi_1.Action.Post, "saved_state_sharing_multiple", body);
34
+ }
35
+ /**
36
+ * Delete a saved state.
37
+ * @param saved_state_sharing_id Id of the saved state sharing relationship to delete.
38
+ * @returns the {@link SdPlatformDeleteResponse} as response.
39
+ */
40
+ delete(saved_state_sharing_id) {
41
+ return super.__delete(SdPlatformRequestId_1.RequestId.SavedStateSharingDelete, saved_state_sharing_id);
42
+ }
43
+ /**
44
+ * Get saved state sharing relationships by saved state id and user id.
45
+ * @param saved_state_id - saved state id.
46
+ * @param user_id - user id.
47
+ * @returns the {@link SdPlatformGetResponse} with array of {@link SdPlatformResponseSavedStateSharing} as data.
48
+ */
49
+ getBySavedStateAndUser(saved_state_id, user_id) {
50
+ return super.__get(SdPlatformRequestId_1.RequestId.SavedStateSharingGetBySavedStateAndUser, `saved_state/${saved_state_id}/user/${user_id}`);
51
+ }
52
+ /**
53
+ * Query saved state sharing relationships.
54
+ * @param params {@link SdPlatformSavedStateSharingQueryParameters}
55
+ * @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseSavedStateSharing} as data.
56
+ */
57
+ query(query) {
58
+ return super.__query(SdPlatformRequestId_1.RequestId.SavedStateSharingQuery, query);
59
+ }
60
+ /**
61
+ * Query saved state sharing relationships by saved state id.
62
+ * @param saved_state_id
63
+ * @param query {@link SdPlatformSavedStateSharingQueryParameters}
64
+ * @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseSavedStateSharing} as data,
65
+ */
66
+ queryBySavedState(saved_state_id, query) {
67
+ return super.__action(SdPlatformRequestId_1.RequestId.SavedStateSharingQueryBySavedState, ResourcesApi_1.Action.Post, `saved_state/${saved_state_id}/query`, query);
68
+ }
69
+ /**
70
+ * Query saved state sharing relationships by user id.
71
+ * @param user_id
72
+ * @param query {@link SdPlatformSavedStateSharingQueryParameters}
73
+ * @returns the {@link SdPlatformQueryResponse} with {@link SdPlatformResponseSavedStateSharing} as data,
74
+ */
75
+ queryByUser(user_id, query) {
76
+ return super.__action(SdPlatformRequestId_1.RequestId.SavedStateSharingQueryByUser, ResourcesApi_1.Action.Post, `user/${user_id}/query`, query);
77
+ }
78
+ /**
79
+ * Gets the model sharings grouped by user.
80
+ * @param saved_state_id
81
+ * @returns the {@link SdPlatformGetResponse} with {@link SdPlatformResponseSavedStateSharing} as data,
82
+ */
83
+ getGroupedByUser(saved_state_id) {
84
+ return super.__action(SdPlatformRequestId_1.RequestId.SavedStateSharingGroupedByuser, ResourcesApi_1.Action.Get, `saved_state/${saved_state_id}/grouped_by_user`, {});
85
+ }
86
+ }
87
+ exports.SdPlatformSavedStateSharingApi = SdPlatformSavedStateSharingApi;
88
+ //# sourceMappingURL=SdPlatformSavedStateSharingApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformSavedStateSharingApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformSavedStateSharingApi.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAE9D,oEAAuD;AAEvD,IAAY,gDAKX;AALD,WAAY,gDAAgD;IAExD,iEAAa,CAAA;IACb,8EAA0B,CAAA;IAC1B,yEAAqB,CAAA;AACzB,CAAC,EALW,gDAAgD,GAAhD,wDAAgD,KAAhD,wDAAgD,QAK3D;AAID;;GAEG;AACH,MAAa,8BAA+B,SAAQ,2BAAY;IAE5D,IAAc,cAAc;QAExB,OAAO,qBAAqB,CAAC;IACjC,CAAC;IAED;;;;QAII;IACG,MAAM,CAAC,IAA+C;QAEzD,OAAO,KAAK,CAAC,MAAM,CAAC,+BAAS,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAEE;;;;QAII;IACI,cAAc,CAAC,IAAsD;QAExE,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,0BAA0B,EAAE,qBAAM,CAAC,IAAI,EAAE,8BAA8B,EAAG,IAAI,CAAC,CAAC;IAEpH,CAAC;IAEL;;;;OAIG;IACI,MAAM,CAAC,sBAA8B;QAExC,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,uBAAuB,EAAE,sBAAsB,CAAC,CAAC;IACrF,CAAC;IAED;;;;;QAKI;IACG,sBAAsB,CAAC,cAAsB,EAAE,OAAe;QAEjE,OAAO,KAAK,CAAC,KAAK,CAAC,+BAAS,CAAC,uCAAuC,EAAE,eAAe,cAAc,SAAS,OAAO,EAAE,CAAC,CAAC;IAC3H,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,KAAkD;QAE3D,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACI,iBAAiB,CAAC,cAAsB,EAAE,KAAkD;QAE/F,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,kCAAkC,EAAE,qBAAM,CAAC,IAAI,EAAE,eAAe,cAAc,QAAQ,EAAE,KAAK,CAAC,CAAC;IACnI,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,OAAe,EAAE,KAAkD;QAElF,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,4BAA4B,EAAE,qBAAM,CAAC,IAAI,EAAE,QAAQ,OAAO,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC/G,CAAC;IAGD;;;;OAIG;IACK,gBAAgB,CAAC,cAAsB;QAE1C,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,8BAA8B,EAAE,qBAAM,CAAC,GAAG,EAAE,eAAe,cAAc,kBAAkB,EAAE,EAAE,CAAC,CAAC;IACrI,CAAC;CAEL;AA5FD,wEA4FC"}
File without changes
File without changes
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformStargateApi = void 0;
4
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
5
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
6
+ /**
7
+ * The stargate api.
8
+ */
9
+ class SdPlatformStargateApi extends ResourcesApi_1.ResourcesApi {
10
+ get __resourcePath() {
11
+ return "stargate";
12
+ }
13
+ /**
14
+ * Gets the stargate config.
15
+ */
16
+ getConfig() {
17
+ return this.__get(SdPlatformRequestId_1.RequestId.StargateGetConfig, "config");
18
+ }
19
+ }
20
+ exports.SdPlatformStargateApi = SdPlatformStargateApi;
21
+ //# sourceMappingURL=SdPlatformStargateApi.js.map