@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.SdPlatformDocumentApi = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ /**
7
+ * Actions related to Documents.
8
+ */
9
+ class SdPlatformDocumentApi extends ResourcesApi_1.ResourcesApi {
10
+ get __resourcePath() {
11
+ return "documents";
12
+ }
13
+ /**
14
+ * Create a document.
15
+ * @param body - {@link SdPlatformRequestDocumentCreate } body
16
+ * @returns - {@link SdPlatformPostResponse} with {@link SdPlatformResponseDomainAdmin} data
17
+ */
18
+ create(body) {
19
+ return super.__post(SdPlatformRequestId_1.RequestId.DocumentCreate, body);
20
+ }
21
+ /**
22
+ * Query documents.
23
+ * @param query - {@link SdPlatformDocumentQueryParameters} query parameters.
24
+ * @returns - the {@link SdPlatformQueryResponse} query response with array of {@link SdPlatformResponseDocument} as data.
25
+ */
26
+ query(query = {}) {
27
+ return super.__query(SdPlatformRequestId_1.RequestId.DocumentQuery, query);
28
+ }
29
+ /**
30
+ * Delete a document.
31
+ * @param { string } id - the id of a document.
32
+ */
33
+ delete(id) {
34
+ return super.__delete(SdPlatformRequestId_1.RequestId.DocumentDelete, id);
35
+ }
36
+ /**
37
+ * Get a list of documents which are relevant to the requesting user.
38
+ * @param query_parameters - optional, {@link SdPlatformDocumentGetQueryParameters}
39
+ * @returns { Promise<SdPlatformGetResponse<Array<SdPlatformResponseDocumentUser>>> }
40
+ */
41
+ list(query_parameters) {
42
+ return super.__action(SdPlatformRequestId_1.RequestId.DocumentList, ResourcesApi_1.Action.Get, "", query_parameters !== null && query_parameters !== void 0 ? query_parameters : {});
43
+ }
44
+ /**
45
+ * Download a document.
46
+ * @param { string } document_id_or_type
47
+ * @returns : Promise<SdPlatformGetResponse<void>>
48
+ */
49
+ download(document_id_or_type) {
50
+ return super.__action(SdPlatformRequestId_1.RequestId.DocumentDownload, ResourcesApi_1.Action.Get, `${document_id_or_type}/download`, {});
51
+ }
52
+ /**
53
+ * View a document.
54
+ * @param { string } document_id_or_type
55
+ * @returns : Promise<SdPlatformGetResponse<void>>
56
+ */
57
+ view(document_id_or_type) {
58
+ return super.__action(SdPlatformRequestId_1.RequestId.DocumentView, ResourcesApi_1.Action.Get, `${document_id_or_type}/view`, {});
59
+ }
60
+ /**
61
+ * Get a download document url.
62
+ * @param { string } document_id_or_type
63
+ * @returns { string }
64
+ */
65
+ getDownloadUrl(document_id_or_type) {
66
+ return `/browser/v1/documents/${document_id_or_type}/download`;
67
+ }
68
+ /**
69
+ * Get a view document url.
70
+ * @param { string } document_id_or_type
71
+ * @returns { string }
72
+ */
73
+ getViewUrl(document_id_or_type) {
74
+ return `/browser/v1/documents/${document_id_or_type}/view`;
75
+ }
76
+ /**
77
+ * Accept a document
78
+ * @param { string } document_id
79
+ * @param { SdPlatformRequestDocumentAccept } body
80
+ */
81
+ accept(document_id, body) {
82
+ return super.__action(SdPlatformRequestId_1.RequestId.DocumentAccept, ResourcesApi_1.Action.Post, `${document_id}/accept`, body);
83
+ }
84
+ }
85
+ exports.SdPlatformDocumentApi = SdPlatformDocumentApi;
86
+ //# sourceMappingURL=SdPlatformDocumentApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformDocumentApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformDocumentApi.ts"],"names":[],"mappings":";;;AAEA,oEAAuD;AACvD,yDAA8D;AA2B9D;;GAEG;AACH,MAAa,qBAAsB,SAAQ,2BAAY;IAEnD,IAAc,cAAc;QAExB,OAAO,WAAW,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,IAAqC;QAE/C,OAAO,KAAK,CAAC,MAAM,CAAC,+BAAS,CAAC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E,GAAG,WAAW,SAAS,EAAE,IAAI,CAAC,CAAC;IAChG,CAAC;CACJ;AAjGD,sDAiGC"}
File without changes
File without changes
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformDomainApi = exports.SdPlatformDomainQueryEmbeddableFields = exports.SdPlatformDomainGetEmbeddableFields = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ var SdPlatformDomainGetEmbeddableFields;
7
+ (function (SdPlatformDomainGetEmbeddableFields) {
8
+ SdPlatformDomainGetEmbeddableFields["Models"] = "models";
9
+ })(SdPlatformDomainGetEmbeddableFields = exports.SdPlatformDomainGetEmbeddableFields || (exports.SdPlatformDomainGetEmbeddableFields = {}));
10
+ var SdPlatformDomainQueryEmbeddableFields;
11
+ (function (SdPlatformDomainQueryEmbeddableFields) {
12
+ SdPlatformDomainQueryEmbeddableFields["ModelsCount"] = "models_count";
13
+ })(SdPlatformDomainQueryEmbeddableFields = exports.SdPlatformDomainQueryEmbeddableFields || (exports.SdPlatformDomainQueryEmbeddableFields = {}));
14
+ /**
15
+ * Operations for domains which can be attached or users, organizations, models.
16
+ */
17
+ class SdPlatformDomainApi extends ResourcesApi_1.ResourcesApi {
18
+ get __resourcePath() {
19
+ return "domains";
20
+ }
21
+ /**
22
+ * Get a domain by id.
23
+ * @param id
24
+ * @param embed - array of {@link SdPlatformDomainGetEmbeddableFields}
25
+ * @returns - {@link SdPlatformGetResponse} with {@link SdPlatformResponseDomain} as result.
26
+ */
27
+ get(id, embed = []) {
28
+ return super.__get(SdPlatformRequestId_1.RequestId.DomainGet, id, embed);
29
+ }
30
+ /**
31
+ * Query domains.
32
+ * @param query
33
+ * @returns
34
+ */
35
+ query(query = {}) {
36
+ return super.__query(SdPlatformRequestId_1.RequestId.DomainQuery, query);
37
+ }
38
+ /**
39
+ * Create a new domain.
40
+ * @param body - {@link SdPlatformRequestDomainCreate} as request body.
41
+ * @returns - new domain.
42
+ */
43
+ create(body) {
44
+ return super.__post(SdPlatformRequestId_1.RequestId.DomainCreate, body);
45
+ }
46
+ /**
47
+ * Patch a domain.
48
+ * @param id - the id of a domain
49
+ * @param body - {@link SdPlatformRequestDomainPatch} as properties to patch.
50
+ */
51
+ patch(id, body) {
52
+ return super.__patch(SdPlatformRequestId_1.RequestId.DomainPatch, id, body);
53
+ }
54
+ /**
55
+ * Delete a domain.
56
+ * @param id - the id of a domain
57
+ */
58
+ delete(id) {
59
+ return super.__delete(SdPlatformRequestId_1.RequestId.DomainDelete, id);
60
+ }
61
+ }
62
+ exports.SdPlatformDomainApi = SdPlatformDomainApi;
63
+ //# sourceMappingURL=SdPlatformDomainApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformDomainApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformDomainApi.ts"],"names":[],"mappings":";;;AAAA,oEAAuD;AACvD,yDAAqD;AAKrD,IAAY,mCAGX;AAHD,WAAY,mCAAmC;IAE3C,wDAAiB,CAAA;AACrB,CAAC,EAHW,mCAAmC,GAAnC,2CAAmC,KAAnC,2CAAmC,QAG9C;AAED,IAAY,qCAGX;AAHD,WAAY,qCAAqC;IAE7C,qEAA4B,CAAA;AAChC,CAAC,EAHW,qCAAqC,GAArC,6CAAqC,KAArC,6CAAqC,QAGhD;AAID;;GAEG;AACH,MAAa,mBAAoB,SAAQ,2BAAY;IAEjD,IAAc,cAAc;QAExB,OAAO,SAAS,CAAC;IACrB,CAAC;IAED;;;;;OAKG;IACI,GAAG,CAAC,EAAU,EAAE,QAAoD,EAAE;QAEzE,OAAO,KAAK,CAAC,KAAK,CAAC,+BAAS,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,QAAyC,EAAE;QAEpD,OAAO,KAAK,CAAC,OAAO,CAAmE,+BAAS,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IACzH,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,IAAmC;QAE7C,OAAO,KAAK,CAAC,MAAM,CAAC,+BAAS,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,EAAU,EAAE,IAAkC;QAEvD,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,WAAW,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,EAAU;QAEpB,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;CACJ;AAxDD,kDAwDC"}
File without changes
File without changes
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformHttpLogApi = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ /**
7
+ * HTTP logs.
8
+ */
9
+ class SdPlatformHttpLogApi extends ResourcesApi_1.ResourcesApi {
10
+ get __resourcePath() {
11
+ return "httplogs";
12
+ }
13
+ /**
14
+ * Query HTTP logs.
15
+ * @param body - the body of a request.
16
+ * @returns - http logs.
17
+ */
18
+ query(body = {}) {
19
+ return super.__query(SdPlatformRequestId_1.RequestId.HttpLogQuery, body);
20
+ }
21
+ }
22
+ exports.SdPlatformHttpLogApi = SdPlatformHttpLogApi;
23
+ //# sourceMappingURL=SdPlatformHttpLogApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformHttpLogApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformHttpLogApi.ts"],"names":[],"mappings":";;;AAAA,oEAAuD;AACvD,yDAAuD;AAMvD;;GAEG;AACH,MAAa,oBAAqB,SAAQ,2BAAY;IAElD,IAAc,cAAc;QAExB,OAAO,UAAU,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAAyC,EAAE;QAEpD,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACJ;AAhBD,oDAgBC"}
File without changes
File without changes
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformImageApi = exports.SdPlatformImageQueryEmbeddableFields = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ /**
7
+ * Platform image emedabble fields.
8
+ */
9
+ var SdPlatformImageQueryEmbeddableFields;
10
+ (function (SdPlatformImageQueryEmbeddableFields) {
11
+ SdPlatformImageQueryEmbeddableFields["User"] = "user";
12
+ SdPlatformImageQueryEmbeddableFields["Models"] = "models";
13
+ })(SdPlatformImageQueryEmbeddableFields = exports.SdPlatformImageQueryEmbeddableFields || (exports.SdPlatformImageQueryEmbeddableFields = {}));
14
+ /**
15
+ * Operations for images which can be attached to models.
16
+ */
17
+ class SdPlatformImageApi extends ResourcesApi_1.ResourcesApi {
18
+ get __resourcePath() {
19
+ return "images";
20
+ }
21
+ /**
22
+ * Get image by id
23
+ * @param id - the id of an image.
24
+ * @param embed - array of {@link SdPlatformImageQueryEmbeddableFields} fields to embed.
25
+ * @returns image
26
+ */
27
+ get(id, embed = []) {
28
+ return super.__get(SdPlatformRequestId_1.RequestId.ImageGet, id, embed);
29
+ }
30
+ /**
31
+ * Queries images
32
+ * @param body - {@link SdPlatformImageQueryParameters} as body.
33
+ *
34
+ * @remarks body is optional.
35
+ */
36
+ query(body = {}) {
37
+ return super.__query(SdPlatformRequestId_1.RequestId.ImageQuery, body);
38
+ }
39
+ /**
40
+ * Create an image
41
+ * @param body {@link SdPlatformRequestImageCreate}
42
+ */
43
+ create(body) {
44
+ return super.__post(SdPlatformRequestId_1.RequestId.ImageCreate, body);
45
+ }
46
+ /**
47
+ * Delete image by id
48
+ * @param id - image id.
49
+ */
50
+ delete(id) {
51
+ return super.__delete(SdPlatformRequestId_1.RequestId.ImagesDelete, id);
52
+ }
53
+ }
54
+ exports.SdPlatformImageApi = SdPlatformImageApi;
55
+ //# sourceMappingURL=SdPlatformImageApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformImageApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformImageApi.ts"],"names":[],"mappings":";;;AAAA,oEAAuD;AAEvD,yDAAsD;AAGtD;;GAEG;AACH,IAAY,oCAIX;AAJD,WAAY,oCAAoC;IAE5C,qDAAa,CAAA;IACb,yDAAiB,CAAA;AACrB,CAAC,EAJW,oCAAoC,GAApC,4CAAoC,KAApC,4CAAoC,QAI/C;AAOD;;GAEG;AACH,MAAa,kBAAmB,SAAQ,2BAAY;IAEhD,IAAc,cAAc;QAExB,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED;;;;;OAKG;IACI,GAAG,CAAC,EAAU,EAAE,QAAqD,EAAE;QAE1E,OAAO,KAAK,CAAC,KAAK,CAAC,+BAAS,CAAC,QAAQ,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,OAAuC,EAAE;QAElD,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,IAAkC;QAE5C,OAAO,KAAK,CAAC,MAAM,CAAC,+BAAS,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,EAAU;QAEpB,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;CACJ;AA9CD,gDA8CC"}
File without changes
File without changes
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformJobLogApi = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ /**
7
+ * The job logs api.
8
+ */
9
+ class SdPlatformJobLogApi extends ResourcesApi_1.ResourcesApi {
10
+ get __resourcePath() {
11
+ return "joblogs";
12
+ }
13
+ /**
14
+ * Query HTTP logs.
15
+ * @param body - the body of a request.
16
+ * @returns - job logs.
17
+ */
18
+ query(body = {}) {
19
+ return super.__query(SdPlatformRequestId_1.RequestId.JobLogQuery, body);
20
+ }
21
+ }
22
+ exports.SdPlatformJobLogApi = SdPlatformJobLogApi;
23
+ //# sourceMappingURL=SdPlatformJobLogApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformJobLogApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformJobLogApi.ts"],"names":[],"mappings":";;;AAAA,oEAAuD;AACvD,yDAAuD;AAMvD;;GAEG;AACH,MAAa,mBAAoB,SAAQ,2BAAY;IAEjD,IAAc,cAAc;QAExB,OAAO,SAAS,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAAwC,EAAE;QAEnD,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;CACJ;AAhBD,kDAgBC"}
File without changes
File without changes
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformModelApi = exports.SdPlatformModelGetEmbeddableFields = exports.SdPlatformModelQueryEmbeddableFields = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ var SdPlatformModelQueryEmbeddableFields;
7
+ (function (SdPlatformModelQueryEmbeddableFields) {
8
+ SdPlatformModelQueryEmbeddableFields["Accessdomains"] = "accessdomains";
9
+ SdPlatformModelQueryEmbeddableFields["GlobalAccessdomains"] = "global_accessdomains";
10
+ SdPlatformModelQueryEmbeddableFields["BackendSystem"] = "backend_system";
11
+ SdPlatformModelQueryEmbeddableFields["Tags"] = "tags";
12
+ SdPlatformModelQueryEmbeddableFields["User"] = "user";
13
+ SdPlatformModelQueryEmbeddableFields["Decoration"] = "decoration";
14
+ SdPlatformModelQueryEmbeddableFields["Bookmark"] = "bookmark";
15
+ SdPlatformModelQueryEmbeddableFields["Organization"] = "organization";
16
+ })(SdPlatformModelQueryEmbeddableFields = exports.SdPlatformModelQueryEmbeddableFields || (exports.SdPlatformModelQueryEmbeddableFields = {}));
17
+ var SdPlatformModelGetEmbeddableFields;
18
+ (function (SdPlatformModelGetEmbeddableFields) {
19
+ SdPlatformModelGetEmbeddableFields["Accessdomains"] = "accessdomains";
20
+ SdPlatformModelGetEmbeddableFields["GlobalAccessdomains"] = "global_accessdomains";
21
+ SdPlatformModelGetEmbeddableFields["BackendSystem"] = "backend_system";
22
+ SdPlatformModelGetEmbeddableFields["BackendProperties"] = "backend_properties";
23
+ SdPlatformModelGetEmbeddableFields["Tags"] = "tags";
24
+ SdPlatformModelGetEmbeddableFields["User"] = "user";
25
+ SdPlatformModelGetEmbeddableFields["Decoration"] = "decoration";
26
+ SdPlatformModelGetEmbeddableFields["Bookmark"] = "bookmark";
27
+ SdPlatformModelGetEmbeddableFields["Ticket"] = "ticket";
28
+ SdPlatformModelGetEmbeddableFields["AuthorTicket"] = "author_ticket";
29
+ SdPlatformModelGetEmbeddableFields["BackendTicket"] = "backend_ticket";
30
+ SdPlatformModelGetEmbeddableFields["Organization"] = "organization";
31
+ })(SdPlatformModelGetEmbeddableFields = exports.SdPlatformModelGetEmbeddableFields || (exports.SdPlatformModelGetEmbeddableFields = {}));
32
+ /**
33
+ * Operations for models on the ShapeDiver Platform.
34
+ */
35
+ class SdPlatformModelApi extends ResourcesApi_1.ResourcesApi {
36
+ get __resourcePath() {
37
+ return "models";
38
+ }
39
+ /**
40
+ * Get model by id, guid, slug, or link_sharing_slug.
41
+ * @param id - the model id.
42
+ * @param embed array of {@link SdPlatformModelGetEmbeddableFields} embeddable properties.
43
+ * @returns get response with a model.
44
+ */
45
+ get(id, embed = []) {
46
+ return super.__get(SdPlatformRequestId_1.RequestId.ModelGet, id, embed);
47
+ }
48
+ /**
49
+ * Queries the models.
50
+ * @param query {@link SdPlatformModelQueryParameters}
51
+ * @returns the {@link SdPlatformQueryResponse} response with one of {@link SdPlatformResponseModelPublic} as result.
52
+ */
53
+ query(query = {}) {
54
+ return super.__query(SdPlatformRequestId_1.RequestId.ModelQuery, query);
55
+ }
56
+ /**
57
+ * Create a model.
58
+ * @param body {@link SdPlatformRequestModelCreate} the parameters of a model.
59
+ * @returns the {@link SdPlatformPostResponse} response with {@link SdPlatformResponseModelOwner} as result.
60
+ */
61
+ create(body = {}) {
62
+ return super.__post(SdPlatformRequestId_1.RequestId.ModelCreate, body);
63
+ }
64
+ /**
65
+ * Patch a model, e.g. to update its status to "done" after successful upload and model checking
66
+ * @param id - the model id.
67
+ * @param params {@link SdPlatformRequestModelPatch} or {@link SdPlatformRequestModelPatchAdmin} as patch paramaters
68
+ * @returns { Promise<SdPlatformPatchResponse<T>> }
69
+ */
70
+ patch(id, params) {
71
+ return super.__patch(SdPlatformRequestId_1.RequestId.ModelPatch, id, params);
72
+ }
73
+ /**
74
+ * Deletes a model.
75
+ * @param id - the model id.
76
+ * @returns the {@link SdPlatformDeleteResponse} response.
77
+ */
78
+ delete(id) {
79
+ return super.__delete(SdPlatformRequestId_1.RequestId.ModelDelete, id);
80
+ }
81
+ /**
82
+ * Decrypt a ticket, the calling user must have permission "decrypt_ticket" for the model identified by the ticket.
83
+ * @param ticket
84
+ * @returns decrypted ticket result {@link SdPlatformResponseDecryptTicketResult}
85
+ */
86
+ decryptTicket(ticket) {
87
+ return super.__action(SdPlatformRequestId_1.RequestId.DecryptTicket, ResourcesApi_1.Action.Post, "decrypt_ticket", {
88
+ ticket
89
+ });
90
+ }
91
+ /**
92
+ * Post method which is to be used to fetch data necessary for iframe embedding of a model using the ShapeDiver Viewer.
93
+ * @param slug - the model slug.
94
+ * @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseIFrameData} as data.
95
+ */
96
+ iframeEmbedding(slug) {
97
+ const is_iframe = parent !== window;
98
+ const origin = is_iframe ? document.referrer : window.location.origin;
99
+ return super.__action(SdPlatformRequestId_1.RequestId.ModelIframeData, ResourcesApi_1.Action.Post, `iframe/${slug}`, {}, {
100
+ "X-ShapeDiver-Origin": origin
101
+ });
102
+ }
103
+ }
104
+ exports.SdPlatformModelApi = SdPlatformModelApi;
105
+ //# sourceMappingURL=SdPlatformModelApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformModelApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformModelApi.ts"],"names":[],"mappings":";;;AAAA,oEAAuD;AACvD,yDAA8D;AAI9D,IAAY,oCAUX;AAVD,WAAY,oCAAoC;IAE5C,uEAA+B,CAAA;IAC/B,oFAA4C,CAAA;IAC5C,wEAAgC,CAAA;IAChC,qDAAa,CAAA;IACb,qDAAa,CAAA;IACb,iEAAyB,CAAA;IACzB,6DAAqB,CAAA;IACrB,qEAA6B,CAAA;AACjC,CAAC,EAVW,oCAAoC,GAApC,4CAAoC,KAApC,4CAAoC,QAU/C;AAED,IAAY,kCAcX;AAdD,WAAY,kCAAkC;IAE1C,qEAA+B,CAAA;IAC/B,kFAA4C,CAAA;IAC5C,sEAAgC,CAAA;IAChC,8EAAwC,CAAA;IACxC,mDAAa,CAAA;IACb,mDAAa,CAAA;IACb,+DAAyB,CAAA;IACzB,2DAAqB,CAAA;IACrB,uDAAiB,CAAA;IACjB,oEAA8B,CAAA;IAC9B,sEAAgC,CAAA;IAChC,mEAA6B,CAAA;AACjC,CAAC,EAdW,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAc7C;A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OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,eAAe,EAAE,qBAAM,CAAC,IAAI,EAAE,UAAU,IAAI,EAAE,EAAE,EAAE,EAAE;YAChF,qBAAqB,EAAE,MAAM;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AArFD,gDAqFC"}
File without changes
File without changes
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformModelSharingApi = exports.SdPlatformModelharingQueryEmbeddableFields = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ var SdPlatformModelharingQueryEmbeddableFields;
7
+ (function (SdPlatformModelharingQueryEmbeddableFields) {
8
+ SdPlatformModelharingQueryEmbeddableFields["User"] = "user";
9
+ SdPlatformModelharingQueryEmbeddableFields["Model"] = "model";
10
+ SdPlatformModelharingQueryEmbeddableFields["Provider"] = "provider";
11
+ })(SdPlatformModelharingQueryEmbeddableFields = exports.SdPlatformModelharingQueryEmbeddableFields || (exports.SdPlatformModelharingQueryEmbeddableFields = {}));
12
+ /**
13
+ * Operations for model sharing relationships.
14
+ */
15
+ class SdPlatformModelSharingApi extends ResourcesApi_1.ResourcesApi {
16
+ get __resourcePath() {
17
+ return "model_sharing";
18
+ }
19
+ /**
20
+ * Create a model sharing relationship.
21
+ * @param body {@link SdPlatformRequestModelSharingCreate} body of a request with parameter to create sharing.
22
+ * @returns the {@link SdPlatformPostResponse} response with {@link SdPlatformResponseModelSharing} as parameter.
23
+ */
24
+ create(body) {
25
+ return super.__post(SdPlatformRequestId_1.RequestId.ModelSharingCreate, body);
26
+ }
27
+ /**
28
+ * Create multiple sharings.
29
+ * @param body {@link SdPlatformRequestModelSharingCreateMultiple}
30
+ * @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseModelSharing} as result.
31
+ */
32
+ createMultiple(body) {
33
+ return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingCreateMultiple, ResourcesApi_1.Action.Post, "model_sharing_multiple", body);
34
+ }
35
+ /**
36
+ * Query model sharing relationships.
37
+ * @param query {@link SdPlatformModelSharingQueryParameters}
38
+ * @returns the {@link SdPlatformQueryResponse} response with {@see SdPlatformResponseModelSharing} as data result.
39
+ */
40
+ query(query = {}) {
41
+ return super.__query(SdPlatformRequestId_1.RequestId.ModelSharingQuery, query);
42
+ }
43
+ /**
44
+ * Query model sharing relationships by model id.
45
+ * @param model_id
46
+ * @param query {@link SdPlatformModelSharingQueryParameters}
47
+ * @returns the {@link SdPlatformQueryResponse} response with {@see SdPlatformResponseModelSharing} as data result.
48
+ */
49
+ queryByModel(model_id, query = {}) {
50
+ return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingQueryByModel, ResourcesApi_1.Action.Post, `model/${model_id}/query`, query);
51
+ }
52
+ /**
53
+ * Query model sharing relationships by user id.
54
+ * @param user_id
55
+ * @param query {@link SdPlatformModelSharingQueryParameters}
56
+ * @returns the {@link SdPlatformQueryResponse} response with {@see SdPlatformResponseModelSharing} as data result.
57
+ */
58
+ queryByUser(user_id, query = {}) {
59
+ return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingQueryByUser, ResourcesApi_1.Action.Post, `user/${user_id}/query`, query);
60
+ }
61
+ /**
62
+ * Get model sharing relationships by model id and user id.
63
+ * @param model_id
64
+ * @param user_id
65
+ * @returns the {@link SdPlatformGetResponse} response with {@see SdPlatformResponseModelSharing} as data result.
66
+ */
67
+ getByModelAndUser(model_id, user_id) {
68
+ return super.__get(SdPlatformRequestId_1.RequestId.ModelSharingGetByModelAndUser, `model/${model_id}/user/${user_id}`);
69
+ }
70
+ /**
71
+ * Delete a model sharing relationship.
72
+ * @param model_sharing_id Id of the model sharing relationship to delete.
73
+ * @returns
74
+ */
75
+ delete(model_sharing_id) {
76
+ return super.__delete(SdPlatformRequestId_1.RequestId.ModelSharingDelete, model_sharing_id);
77
+ }
78
+ /**
79
+ * Gets the model sharings grouped by user.
80
+ * @param model_id
81
+ * @returns
82
+ */
83
+ getGroupedByUser(model_id) {
84
+ return super.__action(SdPlatformRequestId_1.RequestId.ModelSharingGroupedByuser, ResourcesApi_1.Action.Get, `model/${model_id}/grouped_by_user`, {});
85
+ }
86
+ }
87
+ exports.SdPlatformModelSharingApi = SdPlatformModelSharingApi;
88
+ //# sourceMappingURL=SdPlatformModelSharingApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformModelSharingApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformModelSharingApi.ts"],"names":[],"mappings":";;;AACA,oEAAqD;AACrD,yDAA4D;AAc5D,IAAY,0CAKX;AALD,WAAY,0CAA0C;IAElD,2DAAa,CAAA;IACb,6DAAe,CAAA;IACf,mEAAqB,CAAA;AACzB,CAAC,EALW,0CAA0C,GAA1C,kDAA0C,KAA1C,kDAA0C,QAKrD;AAID;;GAEG;AACH,MAAa,yBAA0B,SAAQ,2BAAY;IAEvD,IAAc,cAAc;QAExB,OAAO,eAAe,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,IAAyC;QAEnD,OAAO,KAAK,CAAC,MAAM,CAAC,+BAAS,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,IAAiD;QAEnE,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,0BAA0B,EAAE,qBAAM,CAAC,IAAI,EAAE,wBAAwB,EAAG,IAAI,CAAC,CAAC;IAE9G,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,QAA+C,EAAE;QAE1D,OAAO,KAAK,CAAC,OAAO,CAAC,+BAAS,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;QAKI;IACG,YAAY,CAAC,QAAgB,EAAE,QAA+C,EAAE;QAEnF,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,wBAAwB,EAAE,qBAAM,CAAC,IAAI,EAAE,SAAS,QAAQ,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC7G,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,OAAe,EAAE,QAA+C,EAAE;QAEjF,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,uBAAuB,EAAE,qBAAM,CAAC,IAAI,EAAE,QAAQ,OAAO,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;OAKG;IACI,iBAAiB,CAAC,QAAgB,EAAE,OAAe;QAEtD,OAAO,KAAK,CAAC,KAAK,CAAC,+BAAS,CAAC,6BAA6B,EAAE,SAAS,QAAQ,SAAS,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,gBAAwB;QAElC,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACI,gBAAgB,CAAC,QAAgB;QAEpC,OAAO,KAAK,CAAC,QAAQ,CAAC,+BAAS,CAAC,yBAAyB,EAAE,qBAAM,CAAC,GAAG,EAAE,SAAS,QAAQ,kBAAkB,EAAE,EAAE,CAAC,CAAC;IACpH,CAAC;CAEJ;AA3FD,8DA2FC"}
File without changes
File without changes
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformModelTokenApi = void 0;
4
+ const SdPlatformRequestId_1 = require("../api/SdPlatformRequestId");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ /**
7
+ * Operations for creating tokens for models on Geometry Backend Systems
8
+ */
9
+ class SdPlatformModelTokenApi extends ResourcesApi_1.ResourcesApi {
10
+ get __resourcePath() {
11
+ return "tokens";
12
+ }
13
+ /**
14
+ * Get a token for interacting with a model on its geometry backend system.
15
+ * @param body {@link SdPlatformRequestModelTokenCreate} body of a request.
16
+ * @returns token for accessing one or several models on a ShapeDiver Geometry Backend system
17
+ */
18
+ create(body) {
19
+ return super.__post(SdPlatformRequestId_1.RequestId.TokenCreate, body);
20
+ }
21
+ }
22
+ exports.SdPlatformModelTokenApi = SdPlatformModelTokenApi;
23
+ //# sourceMappingURL=SdPlatformModelTokenApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformModelTokenApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformModelTokenApi.ts"],"names":[],"mappings":";;;AAAA,oEAAuD;AACvD,yDAAsD;AAItD;;GAEG;AACH,MAAa,uBAAwB,SAAQ,2BAAY;IAErD,IAAc,cAAc;QAExB,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,IAAuC;QAEjD,OAAO,KAAK,CAAC,MAAM,CAAC,+BAAS,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;CACJ;AAhBD,0DAgBC"}
File without changes
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdPlatformModelTransferApi = void 0;
4
+ const __1 = require("..");
5
+ const ResourcesApi_1 = require("./commons/ResourcesApi");
6
+ /**
7
+ * Operations for creating, revoking, accepting, denying, model ownership transfer notifications.
8
+ */
9
+ class SdPlatformModelTransferApi extends ResourcesApi_1.ResourcesApi {
10
+ get __resourcePath() {
11
+ return "model_transfers";
12
+ }
13
+ /**
14
+ * Get all model transfer requests for models currently owned by the authenticated user.
15
+ * @returns
16
+ */
17
+ getModelTransferRequests() {
18
+ return super.__action(__1.RequestId.ModelTransferRequestList, ResourcesApi_1.Action.Get, "", {});
19
+ }
20
+ /**
21
+ * Creates a model transfer request. The calling user must have permission "update_owner" for the model.
22
+ * In case the receiving user immediately accepts the transfer request, no notification will be returned.
23
+ * @param model_id
24
+ * @param body {@link SdPlatformRequestModelTransferCreate}
25
+ * @returns
26
+ */
27
+ createModelTransferRequest(model_id, body) {
28
+ return super.__action(__1.RequestId.ModelTransferRequestCreate, ResourcesApi_1.Action.Post, `${model_id}`, body);
29
+ }
30
+ /**
31
+ * Deletes a model transfer request by model id. The calling user must have permission "update_owner" for the model.
32
+ * @param model_id
33
+ * @returns
34
+ */
35
+ deleteModelTransferRequest(model_id) {
36
+ return super.__action(__1.RequestId.ModelTransferRequestDelete, ResourcesApi_1.Action.Delete, `${model_id}`, {});
37
+ }
38
+ /**
39
+ * Get a model transfer request by model id. The calling user must have permission "update_owner" for the model.
40
+ * The receiving user can see the model transfer request when querying notifications in general.
41
+ * @param model_id
42
+ * @returns
43
+ */
44
+ getModelTransferRequest(model_id) {
45
+ return super.__action(__1.RequestId.ModelTransferRequestGet, ResourcesApi_1.Action.Get, `${model_id}`, {});
46
+ }
47
+ /**
48
+ * Accept a model transfer request. This must be called by the receiving user.
49
+ * @param model_id
50
+ * @returns
51
+ */
52
+ acceptModelTransferRequest(model_id) {
53
+ return super.__action(__1.RequestId.ModelTransferRequestAccept, ResourcesApi_1.Action.Post, `accept/${model_id}`, {});
54
+ }
55
+ /**
56
+ * Deny the model transfer request. This must be called by the receiving user.
57
+ * @param model_id
58
+ * @returns
59
+ */
60
+ denyModelTransferRequest(model_id) {
61
+ return super.__action(__1.RequestId.ModelTransferRequestDeny, ResourcesApi_1.Action.Post, `deny/${model_id}`, {});
62
+ }
63
+ }
64
+ exports.SdPlatformModelTransferApi = SdPlatformModelTransferApi;
65
+ //# sourceMappingURL=SdPlatformModelTransferApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformModelTransferApi.js","sourceRoot":"","sources":["../../src/resources/SdPlatformModelTransferApi.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAC/B,yDAA8D;AAI9D;;GAEG;AACH,MAAa,0BAA2B,SAAQ,2BAAY;IAExD,IAAc,cAAc;QAExB,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,wBAAwB;QAE3B,OAAO,KAAK,CAA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