@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 @@
1
+ {"version":3,"file":"SdPlatformStargateApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformStargateApi.ts"],"names":[],"mappings":";;;AACA,yDAAsD;AACtD,oEAAuD;AAEvD;;GAEG;AACH,MAAa,qBAAsB,SAAQ,2BAAY;IAEnD,IAAc,cAAc;QAExB,OAAO,UAAU,CAAC;IACtB,CAAC;IAEJ;;OAEG;IACI,SAAS;QAEf,OAAO,IAAI,CAAC,KAAK,CAAC,+BAAS,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;IAC1D,CAAC;CACD;AAdD,sDAcC"}
File without changes
File without changes
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformTagApi = exports.SdPlatformTagQueryEmbeddableFields = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ var SdPlatformTagQueryEmbeddableFields;
7
+ (function (SdPlatformTagQueryEmbeddableFields) {
8
+ SdPlatformTagQueryEmbeddableFields["ModelsCount"] = "models_count";
9
+ })(SdPlatformTagQueryEmbeddableFields = exports.SdPlatformTagQueryEmbeddableFields || (exports.SdPlatformTagQueryEmbeddableFields = {}));
10
+ /**
11
+ * Operations for tags which can be attached to models.
12
+ */
13
+ class SdPlatformTagApi extends ResourcesApi_1.ResourcesApi {
14
+ get __resourcePath() {
15
+ return "tags";
16
+ }
17
+ /**
18
+ * Gets the {@link SdPlatformResponseTag} by id.
19
+ * @param id - the id of a tag.
20
+ * @returns the {@link SdPlatformGetResponse} with {@link SdPlatformResponseTag} or {@link SdPlatformResponseTagAdmin} as data.
21
+ */
22
+ get(id) {
23
+ return super.__get(SdPlatformRequestId_1.RequestId.TagGet, id);
24
+ }
25
+ /**
26
+ * Queries the {@link SdPlatformResponseTag} tags.
27
+ * @param query {@link SdPlatformTagQueryParameters} - query parameters for tags.
28
+ * @returns collection of {@link SdPlatformResponseTag} based on query parameters.
29
+ */
30
+ query(query = {}) {
31
+ return super.__query(SdPlatformRequestId_1.RequestId.TagQuery, query);
32
+ }
33
+ }
34
+ exports.SdPlatformTagApi = SdPlatformTagApi;
35
+ //# sourceMappingURL=SdPlatformTagApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformTagApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformTagApi.ts"],"names":[],"mappings":";;;AAAA,oEAAuD;AACvD,yDAAsD;AAItD,IAAY,kCAGX;AAHD,WAAY,kCAAkC;IAE1C,kEAA4B,CAAA;AAChC,CAAC,EAHW,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAG7C;AAID;;GAEG;AACH,MAAa,gBAAiB,SAAQ,2BAAY;IAE9C,IAAc,cAAc;QAExB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,EAAU;QAEjB,OAAO,KAAK,CAAC,KAAK,CAAC,+BAAS,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,QAAsC,EAAE;QAEjD,OAAO,KAAK,CAAC,OAAO,CAA6D,+BAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAChH,CAAC;CACJ;AA1BD,4CA0BC"}
File without changes
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformUserAnalyticsApi = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ /**
7
+ * Analytics for users.
8
+ */
9
+ class SdPlatformUserAnalyticsApi extends ResourcesApi_1.ResourcesApi {
10
+ get __resourcePath() {
11
+ return "user_model_sessions";
12
+ }
13
+ /**
14
+ * Query session analytics aggregated per user.
15
+ * @param body the query parameters.
16
+ * @returns collection of {@link SdPlatformResponseUserModelSessionAnalyticsPerTimestamp} based on query parameters.
17
+ */
18
+ query(body = {}) {
19
+ return super.__query(SdPlatformRequestId_1.RequestId.UserModelSessionsQuery, body);
20
+ }
21
+ }
22
+ exports.SdPlatformUserAnalyticsApi = SdPlatformUserAnalyticsApi;
23
+ //# sourceMappingURL=SdPlatformUserAnalyticsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformUserAnalyticsApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformUserAnalyticsApi.ts"],"names":[],"mappings":";;;AAEA,oEAAuD;AACvD,yDAAsD;AAGtD;;GAEG;AACH,MAAa,0BAA2B,SAAQ,2BAAY;IAExD,IAAc,cAAc;QAExB,OAAO,qBAAqB,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAA2C,EAAE;QAEtD,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;CAEJ;AAjBD,gEAiBC"}
File without changes
File without changes
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformUserApi = exports.SdPlatformUserGetEmbeddableFields = exports.SdPlatformUserQueryEmbeddableFields = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ var SdPlatformUserQueryEmbeddableFields;
7
+ (function (SdPlatformUserQueryEmbeddableFields) {
8
+ SdPlatformUserQueryEmbeddableFields["BackendSystem"] = "backend_system";
9
+ SdPlatformUserQueryEmbeddableFields["ChargebeeAddons"] = "chargebee_addons";
10
+ SdPlatformUserQueryEmbeddableFields["ChargebeeCustomer"] = "chargebee_customer";
11
+ SdPlatformUserQueryEmbeddableFields["ChargebeePlan"] = "chargebee_plan";
12
+ SdPlatformUserQueryEmbeddableFields["ChargebeeSubscription"] = "chargebee_subscription";
13
+ SdPlatformUserQueryEmbeddableFields["GlobalAccessDomains"] = "global_accessdomains";
14
+ SdPlatformUserQueryEmbeddableFields["Organization"] = "organization";
15
+ })(SdPlatformUserQueryEmbeddableFields = exports.SdPlatformUserQueryEmbeddableFields || (exports.SdPlatformUserQueryEmbeddableFields = {}));
16
+ var SdPlatformUserGetEmbeddableFields;
17
+ (function (SdPlatformUserGetEmbeddableFields) {
18
+ SdPlatformUserGetEmbeddableFields["BackendSystem"] = "backend_system";
19
+ SdPlatformUserGetEmbeddableFields["ChargebeeAddons"] = "chargebee_addons";
20
+ SdPlatformUserGetEmbeddableFields["ChargebeeCustomer"] = "chargebee_customer";
21
+ SdPlatformUserGetEmbeddableFields["ChargebeePlan"] = "chargebee_plan";
22
+ SdPlatformUserGetEmbeddableFields["ChargebeeSubscription"] = "chargebee_subscription";
23
+ SdPlatformUserGetEmbeddableFields["GlobalAccessDomains"] = "global_accessdomains";
24
+ SdPlatformUserGetEmbeddableFields["Organization"] = "organization";
25
+ SdPlatformUserGetEmbeddableFields["UsedCredits"] = "used_credits";
26
+ })(SdPlatformUserGetEmbeddableFields = exports.SdPlatformUserGetEmbeddableFields || (exports.SdPlatformUserGetEmbeddableFields = {}));
27
+ /**
28
+ * Operations for users.
29
+ */
30
+ class SdPlatformUserApi extends ResourcesApi_1.ResourcesApi {
31
+ get __resourcePath() {
32
+ return "users";
33
+ }
34
+ /**
35
+ * Gets the specific user by id
36
+ * @param id - user id.
37
+ * @param embed array of {@link SdPlatformUserGetEmbeddableFields} embeddable resources.
38
+ */
39
+ get(id, embed) {
40
+ return super.__get(SdPlatformRequestId_1.RequestId.UserGet, id, embed);
41
+ }
42
+ /**
43
+ * Register a new user. If successful a registration confirmation email will be sent.
44
+ * @param body {@link SdPlatformRequestUserRegister}
45
+ */
46
+ register(body) {
47
+ return super.__action(SdPlatformRequestId_1.RequestId.UserRegister, ResourcesApi_1.Action.Post, "register", body);
48
+ }
49
+ /**
50
+ * Query users.
51
+ * @param body {@link SdPlatformUserQueryParameters}
52
+ */
53
+ query(body = {}) {
54
+ return super.__query(SdPlatformRequestId_1.RequestId.UserQuery, body);
55
+ }
56
+ /**
57
+ * Patch a user.
58
+ * @param id - the id of a user
59
+ * @param body {@link SdPlatformRequestUserPatch} properties to patch
60
+ */
61
+ // note - think about whether or not admin user resource should be default ?
62
+ patch(id, body) {
63
+ return super.__patch(SdPlatformRequestId_1.RequestId.UserPatch, id, body);
64
+ }
65
+ /**
66
+ * Delete a user
67
+ * @param id
68
+ * @returns
69
+ */
70
+ delete(id) {
71
+ return super.__delete(SdPlatformRequestId_1.RequestId.UserDelete, id);
72
+ }
73
+ /**
74
+ * Confirm a user registration.
75
+ * @param token Token which was provided via registration confirmation email.
76
+ * @returns
77
+ */
78
+ confirm(token) {
79
+ return super.__action(SdPlatformRequestId_1.RequestId.UserConfirm, ResourcesApi_1.Action.Post, 'confirm', {
80
+ token,
81
+ });
82
+ }
83
+ /**
84
+ * Request reset password token by email
85
+ * @param email
86
+ */
87
+ passwordReset(email) {
88
+ return super.__action(SdPlatformRequestId_1.RequestId.PasswordReset, ResourcesApi_1.Action.Post, 'password_reset', {
89
+ email,
90
+ });
91
+ }
92
+ /**
93
+ * Change password using token
94
+ * @param body {@see SdPlatformRequestUserPasswordResetConfirm}
95
+ */
96
+ passwordResetConfirm(body) {
97
+ return super.__action(SdPlatformRequestId_1.RequestId.PasswordResetConfirm, ResourcesApi_1.Action.Post, 'password_reset_confirm', body);
98
+ }
99
+ /**
100
+ * Returns an array of data about authorized client applications and their refresh tokens.
101
+ * @param user_id
102
+ * @returns the {@link SdPlatformGetResponse} with array of {@link SdPlatformResponseUserRefreshToken} as data
103
+ */
104
+ getUserRefreshTokens(user_id) {
105
+ return super.__action(SdPlatformRequestId_1.RequestId.UserRefreshToken, ResourcesApi_1.Action.Get, `users/${user_id}/apiclients`, {});
106
+ }
107
+ /**
108
+ * Delete refresh token.
109
+ * @param user_id
110
+ * @param refresh_token_id
111
+ * @returns the {@link SdPlatformDeleteResponse} response.
112
+ */
113
+ deleteRefreshToken(user_id, refresh_token_id) {
114
+ return super.__action(SdPlatformRequestId_1.RequestId.UserDeleteRefreshToken, ResourcesApi_1.Action.Delete, `users/${user_id}/apiclients/${refresh_token_id}`, {});
115
+ }
116
+ }
117
+ exports.SdPlatformUserApi = SdPlatformUserApi;
118
+ //# sourceMappingURL=SdPlatformUserApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformUserApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformUserApi.ts"],"names":[],"mappings":";;;AACA,oEAAqD;AACrD,yDAA8D;AAG9D,IAAY,mCASX;AATD,WAAY,mCAAmC;IAE3C,uEAAgC,CAAA;IAChC,2EAAoC,CAAA;IACpC,+EAAwC,CAAA;IACxC,uEAAgC,CAAA;IAChC,uFAAgD,CAAA;IAChD,mFAA4C,CAAA;IAC5C,oEAA6B,CAAA;AACjC,CAAC,EATW,mCAAmC,GAAnC,2CAAmC,KAAnC,2CAAmC,QAS9C;AAED,IAAY,iCAUX;AAVD,WAAY,iCAAiC;IAEzC,qEAAgC,CAAA;IAChC,yEAAoC,CAAA;IACpC,6EAAwC,CAAA;IACxC,qEAAgC,CAAA;IAChC,qFAAgD,CAAA;IAChD,iFAA4C,CAAA;IAC5C,kEAA6B,CAAA;IAC7B,iEAA4B,CAAA;AAChC,CAAC,EAVW,iCAAiC,GAAjC,yCAAiC,KAAjC,yCAAiC,QAU5C;AAID;;GAEG;AACH,MAAa,iBAAkB,SAAQ,2BAAY;IAE/C,IAAc,cAAc;QAExB,OAAO,OAAO,CAAC;IACnB,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAoC,EAAU,EAAE,KAAgD;QAEtG,OAAO,KAAK,CAAC,KAAK,CAAC,+BAAS,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK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AAQ,CAAC,+BAAS,CAAC,gBAAgB,EAAE,qBAAM,CAAC,GAAG,EAAE,SAAS,OAAO,aAAa,EAAE,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CAAC,OAAe,EAAE,gBAAwB;QAEhE,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,sBAAsB,EAAE,qBAAM,CAAC,MAAM,EAAE,SAAS,OAAO,eAAe,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAAC;IACjI,CAAC;CACL;AA5GD,8CA4GC"}
File without changes
File without changes
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformWebhookApi = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ /**
6
+ * Webhook calls.
7
+ */
8
+ class SdPlatformWebhookApi {
9
+ /**
10
+ * @param { ShapeDiverSDKContext } __context
11
+ */
12
+ constructor(__context) {
13
+ this.__context = __context;
14
+ this.__commonPath = "webhook/v1";
15
+ this.__api = __context.api;
16
+ }
17
+ __getPath(pathSufix = null) {
18
+ return `${this.__commonPath}/${pathSufix}`;
19
+ }
20
+ __resolveRequestConfig(options) {
21
+ return {
22
+ username: options.username,
23
+ password: options.password,
24
+ access_token: options.bearer_access_token,
25
+ basic_access_token: options.basic_access_token,
26
+ client_id: this.__context.config.clientId
27
+ };
28
+ }
29
+ /**
30
+ * Webhook which notifies the platform of chargebee events.
31
+ * @param auth {@link SdPlatformWebhookBasicAuth}
32
+ * @param body {@link SdPlatformRequestWebhookChargebeeEvent}
33
+ * @returns
34
+ */
35
+ chargebeeEvent(auth, body) {
36
+ return this.__api.post(SdPlatformRequestId_1.RequestId.WebhookChargebeeEvent, this.__getPath("chargebee_event"), body, this.__resolveRequestConfig({
37
+ username: auth.username,
38
+ password: auth.password
39
+ }));
40
+ }
41
+ /**
42
+ * Model message webhook call - send a message to the owner of a model.
43
+ * @param auth {@link SdPlatformWebhookTokenAuth}
44
+ * @param body {@link SdPlatformRequestWebhookModelMessage}
45
+ * @returns
46
+ */
47
+ modelMessage(auth, body) {
48
+ return this.__api.post(SdPlatformRequestId_1.RequestId.WebhookModelMessage, this.__getPath("model_message"), body, this.__resolveRequestConfig({
49
+ bearer_access_token: auth.bearer_access_token,
50
+ basic_access_token: auth.basic_access_token,
51
+ }));
52
+ }
53
+ /**
54
+ * Notification webhook call - create a notification related to a model.
55
+ * @param auth {@link SdPlatformWebhookTokenAuth}
56
+ * @param body {@link SdPlatformRequestWebhookNotification}
57
+ * @returns
58
+ */
59
+ notification(auth, body) {
60
+ return this.__api.post(SdPlatformRequestId_1.RequestId.WebhookNotification, this.__getPath("notifications"), body, this.__resolveRequestConfig({
61
+ bearer_access_token: auth.bearer_access_token,
62
+ basic_access_token: auth.basic_access_token,
63
+ }));
64
+ }
65
+ }
66
+ exports.SdPlatformWebhookApi = SdPlatformWebhookApi;
67
+ //# sourceMappingURL=SdPlatformWebhookApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformWebhookApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformWebhookApi.ts"],"names":[],"mappings":";;;AACA,oEAAuD;AAiBvD;;GAEG;AACH,MAAa,oBAAoB;IAK7B;;OAEG;IACH,YAAsB,SAA+B;QAA/B,cAAS,GAAT,SAAS,CAAsB;QAN3C,iBAAY,GAAW,YAAY,CAAC;QAQ1C,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC;IAC/B,CAAC;IAES,SAAS,CAAC,YAA2B,IAAI;QAE/C,OAAO,GAAG,IAAI,CAAC,YAAY,IAAI,SAAS,EAAE,CAAC;IAC/C,CAAC;IAES,sBAAsB,CAAC,OAA4G;QAEzI,OAAO;YACH,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,YAAY,EAAE,OAAO,CAAC,mBAAmB;YACzC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB;YAC9C,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ;SAC5C,CAAA;IACL,CAAC;IAED;;;;;OAKG;IACI,cAAc,CAAC,IAAgC,EAAE,IAA4C;QAEhG,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+BAAS,CAAC,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,sBAAsB,CAAC;YACzH,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;SAC1B,CAAC,CAAC,CAAC;IACR,CAAC;IAED;;;;;MAKE;IACK,YAAY,CAAC,IAAgC,EAAE,IAA0C;QAE5F,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+BAAS,CAAC,mBAAmB,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,sBAAsB,CAAC;YACrH,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;SAC9C,CAAC,CAAC,CAAC;IACR,CAAC;IAED;;;;;MAKE;IACK,YAAY,CAAC,IAAgC,EAAE,IAA0C;QAE5F,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+BAAS,CAAC,mBAAmB,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,sBAAsB,CAAC;YACrH,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;SAC9C,CAAC,CAAC,CAAC;IACR,CAAC;CAEJ;AAvED,oDAuEC"}
File without changes
File without changes
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FilterBuilderInstance = exports.LogicalOperators = exports.FilterOperators = void 0;
4
+ /**
5
+ * TODO https://shapediver.atlassian.net/browse/SS-4815
6
+ * document, test, expose somehow in resource API
7
+ */
8
+ var FilterOperators;
9
+ (function (FilterOperators) {
10
+ FilterOperators["Equal"] = "=";
11
+ FilterOperators["Like"] = "%";
12
+ })(FilterOperators = exports.FilterOperators || (exports.FilterOperators = {}));
13
+ var LogicalOperators;
14
+ (function (LogicalOperators) {
15
+ LogicalOperators["And"] = "&";
16
+ LogicalOperators["Or"] = "|";
17
+ })(LogicalOperators = exports.LogicalOperators || (exports.LogicalOperators = {}));
18
+ ;
19
+ /**
20
+ * Instance of filter builder.
21
+ */
22
+ class FilterBuilderInstance {
23
+ constructor(__expressions = []) {
24
+ this.__expressions = __expressions;
25
+ }
26
+ static create(expressions) {
27
+ return new FilterBuilderInstance(expressions);
28
+ }
29
+ start(expressions) {
30
+ this.__expressions = expressions !== null && expressions !== void 0 ? expressions : [];
31
+ return this;
32
+ }
33
+ attach(expression) {
34
+ this.__expressions.push(expression);
35
+ return this;
36
+ }
37
+ finish() {
38
+ var _a;
39
+ const filter = {};
40
+ for (let expression of this.__expressions) {
41
+ let property = expression.property;
42
+ // start with array, decide later if it's single item or not
43
+ let value = [expression.value];
44
+ // leave empty on non defined, which is same as equals
45
+ let filter_oprator = expression.filter_operator ? `[${expression.filter_operator}]` : "";
46
+ let key = `${property}${filter_oprator}`;
47
+ // checked joined expressions.
48
+ let join = expression.join;
49
+ while (join) {
50
+ // default to and on not defined. Default operator to "" if not defined, which is same as equals
51
+ const logical = (_a = expression.logical_operator) !== null && _a !== void 0 ? _a : LogicalOperators.And;
52
+ filter_oprator = join.filter_operator ? `[${join.filter_operator}]` : "";
53
+ key += `${logical}${join.property}${filter_oprator}`;
54
+ value.push(join.value);
55
+ // assign new join
56
+ join = join.join;
57
+ }
58
+ // assign a filter
59
+ filter[key] = value.length == 1 ? value[0] : value;
60
+ }
61
+ return filter;
62
+ }
63
+ }
64
+ exports.FilterBuilderInstance = FilterBuilderInstance;
65
+ //# sourceMappingURL=FilterBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterBuilder.js","sourceRoot":"","sources":["../../../src/resources/commons/FilterBuilder.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AAEH,IAAY,eAIX;AAJD,WAAY,eAAe;IAEvB,8BAAW,CAAA;IACX,6BAAU,CAAA;AACd,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAExB,6BAAS,CAAA;IACT,4BAAQ,CAAA;AACZ,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAUA,CAAC;AAyBF;;GAEG;AACH,MAAa,qBAAqB;IAE9B,YAAoB,gBAAyC,EAAE;QAA3C,kBAAa,GAAb,aAAa,CAA8B;IAC7D,CAAC;IAEI,MAAM,CAAC,MAAM,CAAC,WAAgC;QAEjD,OAAO,IAAI,qBAAqB,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;IAEM,KAAK,CAAC,WAAgC;QAEzC,IAAI,CAAC,aAAa,GAAG,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,EAAE,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,MAAM,CAAC,UAA4B;QAEtC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,MAAM;;QAET,MAAM,MAAM,GAA2D,EAAE,CAAC;QAC1E,KAAK,IAAI,UAAU,IAAI,IAAI,CAAC,aAAa,EACzC;YACI,IAAI,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;YACnC,4DAA4D;YAC5D,IAAI,KAAK,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAE/B,sDAAsD;YACtD,IAAI,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YACzF,IAAI,GAAG,GAAG,GAAG,QAAQ,GAAG,cAAc,EAAE,CAAC;YAEzC,8BAA8B;YAC9B,IAAI,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;YAC3B,OAAO,IAAI,EACX;gBACI,gGAAgG;gBAChG,MAAM,OAAO,GAAG,MAAA,UAAU,CAAC,gBAAgB,mCAAI,gBAAgB,CAAC,GAAG,CAAC;gBACpE,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;gBAEzE,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,CAAC,QAAQ,GAAG,cAAc,EAAE,CAAC;gBAErD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAEvB,kBAAkB;gBAClB,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;aACpB;YAED,kBAAkB;YAClB,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;SACtD;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAzDD,sDAyDC"}
File without changes
File without changes
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ResourcesApi = exports.Action = void 0;
13
+ const SdPlatformSdkContext_1 = require("../../SdPlatformSdkContext");
14
+ /**
15
+ * Actions enum.
16
+ */
17
+ var Action;
18
+ (function (Action) {
19
+ Action["Post"] = "post";
20
+ Action["Get"] = "get";
21
+ Action["Delete"] = "delete";
22
+ Action["Patch"] = "patch";
23
+ })(Action = exports.Action || (exports.Action = {}));
24
+ /**
25
+ * Base ShapeDiver Platform resource API. Implement this for new resources.
26
+ */
27
+ class ResourcesApi {
28
+ constructor(__context, __authApi) {
29
+ this.__context = __context;
30
+ this.__authApi = __authApi;
31
+ this.__commonPath = "api/v1";
32
+ this.__api = __context.api;
33
+ }
34
+ __getPath(pathSufix = null) {
35
+ if (pathSufix == null) {
36
+ return `${this.__commonPath}/${this.__resourcePath}`;
37
+ }
38
+ return `${this.__commonPath}/${this.__resourcePath}/${pathSufix}`;
39
+ }
40
+ __resolveRequestConfig() {
41
+ return {
42
+ access_token: this.__context.accessTokenDetails.access_token,
43
+ client_id: this.__context.config.clientId
44
+ };
45
+ }
46
+ __refreshTokenIfExpired() {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ if (this.__context.accessTokenState == SdPlatformSdkContext_1.SdPlatformAccessTokenState.Expired) {
49
+ yield this.__authApi.refreshToken();
50
+ }
51
+ return Promise.resolve();
52
+ });
53
+ }
54
+ __schema(requestId) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ yield this.__refreshTokenIfExpired();
57
+ return this.__api.get(requestId, this.__getPath(), this.__resolveRequestConfig());
58
+ });
59
+ }
60
+ /**
61
+ * Base get request
62
+ * @param { string } id - the id of a resource.
63
+ * @param { null|Array<string> } embed - resources to embed.
64
+ */
65
+ __get(requestId, id, embed) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ yield this.__refreshTokenIfExpired();
68
+ return yield this.__api.get(requestId, this.__getPath(id), this.__resolveRequestConfig(), { embed });
69
+ });
70
+ }
71
+ __query(requestId, body = {}) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ yield this.__refreshTokenIfExpired();
74
+ return yield this.__api.post(requestId, this.__getPath("query"), body, this.__resolveRequestConfig());
75
+ });
76
+ }
77
+ __post(requestId, body) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ yield this.__refreshTokenIfExpired();
80
+ return this.__api.post(requestId, this.__getPath(), body, this.__resolveRequestConfig());
81
+ });
82
+ }
83
+ __patch(requestId, id, body) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ yield this.__refreshTokenIfExpired();
86
+ return this.__api.patch(requestId, this.__getPath(id), body, this.__resolveRequestConfig());
87
+ });
88
+ }
89
+ __delete(requestId, id) {
90
+ return __awaiter(this, void 0, void 0, function* () {
91
+ yield this.__refreshTokenIfExpired();
92
+ return this.__api.delete(requestId, this.__getPath(id), this.__resolveRequestConfig());
93
+ });
94
+ }
95
+ __action(requestId, action, pathSuffix, body, headers = {}) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ yield this.__refreshTokenIfExpired();
98
+ if (action == Action.Get) {
99
+ // @ts-ignore
100
+ return this.__api[action](requestId, this.__getPath(pathSuffix), this.__resolveRequestConfig(), body);
101
+ }
102
+ if (action == Action.Delete) {
103
+ // @ts-ignore
104
+ return this.__api[action](requestId, this.__getPath(pathSuffix), this.__resolveRequestConfig());
105
+ }
106
+ // @ts-ignore
107
+ return this.__api[action](requestId, this.__getPath(pathSuffix), body, this.__resolveRequestConfig(), headers);
108
+ });
109
+ }
110
+ }
111
+ exports.ResourcesApi = ResourcesApi;
112
+ //# sourceMappingURL=ResourcesApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResourcesApi.js","sourceRoot":"","sources":["../../../src/resources/commons/ResourcesApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qEAA8F;AAK9F;;GAEG;AACH,IAAY,MAMX;AAND,WAAY,MAAM;IAEd,uBAAa,CAAA;IACb,qBAAW,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AsB,EAAE,CAAC,CAAC;QAC3F,CAAC;KAAA;IAEe,QAAQ,CAAmB,SAAoB,EAAE,MAAc,EAAE,UAAkB,EAAE,IAAW,EAAC,UAAoC,EAAE;;YAEnJ,MAAM,IAAI,CAAC,uBAAuB,EAAE,CAAC;YACrC,IAAI,MAAM,IAAI,MAAM,CAAC,GAAG,EACxB;gBACI,aAAa;gBACb,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,CAAC,CAAC;aACzG;YACD,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,EAC3B;gBACI,aAAa;gBACb,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC;aACnG;YACD,aAAa;YACb,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,sBAAsB,EAAE,EAAE,OAAO,CAAC,CAAC;QACnH,CAAC;KAAA;CAEJ;AAjGD,oCAiGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapediver/sdk.platform-api-sdk-v1",
3
- "version": "2.15.0",
3
+ "version": "2.15.2",
4
4
  "description": "SDK to communicate with the Platform API version 1",
5
5
  "keywords": [
6
6
  "shapediver",
@@ -33,7 +33,7 @@
33
33
  "scripts": {
34
34
  "test": "bash ../../scripts/test.sh",
35
35
  "check": "tsc --noEmit",
36
- "build": "npx webpack",
36
+ "build": "bash ../../scripts/build.sh",
37
37
  "build-dep": "bash ../../scripts/build-dep.sh",
38
38
  "build-dev": "bash ../../scripts/build-dev.sh",
39
39
  "build-prod": "bash ../../scripts/build-prod.sh",
@@ -41,7 +41,7 @@
41
41
  "post-publish": "bash ../../scripts/post-publish.sh"
42
42
  },
43
43
  "dependencies": {
44
- "@shapediver/api.platform-api-dto-v1": "~2.15.0",
44
+ "@shapediver/api.platform-api-dto-v1": "~2.15.4",
45
45
  "axios": "^0.26.1",
46
46
  "jwt-decode": "~3.1.2"
47
47
  },
@@ -50,12 +50,8 @@
50
50
  "dotenv": "~16.0.3",
51
51
  "dotenv-webpack": "7.1.1",
52
52
  "jest": "~27.5.1",
53
- "lerna": "3.22.1",
54
- "ts-loader": "~8.4.0",
55
- "typescript": "~4.9.5",
56
- "webpack": "~4.46.0",
57
- "webpack-cli": "4.9.2",
58
- "webpack-dev-server": "4.8.1"
53
+ "lerna": "^6.6.1",
54
+ "typescript": "~4.9.5"
59
55
  },
60
56
  "gitHead": "bbc446830cacb0aae7847fcc4438e0fbcc04865e"
61
57
  }