@shapediver/sdk.platform-api-sdk-v1 1.15.4 → 2.6.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.
@@ -10,10 +10,10 @@ export declare type SdPlatformApiTokenQueryParameters = SdPlatformQueryParameter
10
10
  */
11
11
  export declare class SdPlatformApiTokenApi extends ResourcesApi {
12
12
  protected get __resourcePath(): string;
13
- get(id: string): Promise<SdPlatformGetResponse<SdPlatformResponseApiToken>>;
13
+ get(key_id: string): Promise<SdPlatformGetResponse<SdPlatformResponseApiToken>>;
14
14
  query(query?: SdPlatformApiTokenQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponseApiToken>>;
15
15
  create(body: SdPlatformRequestApiTokenCreate): Promise<SdPlatformPostResponse<SdPlatformResponseApiTokenWithSecret>>;
16
16
  patch(key_id: string, body: SdPlatformRequestApiTokenPatch): Promise<SdPlatformPatchResponse<SdPlatformResponseApiToken>>;
17
- delete(id: string): Promise<SdPlatformDeleteResponse>;
17
+ delete(key_id: string): Promise<SdPlatformDeleteResponse>;
18
18
  }
19
19
  //# sourceMappingURL=SdPlatformApiTokenApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SdPlatformApiTokenApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformApiTokenApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC/K,OAAO,EAAC,yBAAyB,EAAE,+BAA+B,EAAE,8BAA8B,EAAE,0BAA0B,EAAE,oCAAoC,EAAC,MAAM,qCAAqC,CAAC;AAEjN,oBAAY,iCAAiC,GAAG,yBAAyB,CAAC,IAAI,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,qBAAa,qBAAsB,SAAQ,YAAY;IAEnD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,CAAC,IAAI,EAAE,+BAA+B,GAAG,OAAO,CAAC,sBAAsB,CAAC,oCAAoC,CAAC,CAAC;IAKpH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,uBAAuB,CAAC,0BAA0B,CAAC,CAAC;IAKzH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAInE"}
@@ -0,0 +1,84 @@
1
+ import { SdPlatformDeleteResponse, SdPlatformGetResponse, SdPlatformQueryParameters, SdPlatformQueryResponse, SdPlatformRequestDocumentAccept, SdPlatformResponseDocument, SdPlatformResponseDocumentUser, SdPlatformResponseDomainAdmin } from "@shapediver/api.platform-api-dto-v1";
2
+ import { SdPlatformPostResponse } from "@shapediver/api.platform-api-dto-v1";
3
+ import { ResourcesApi } from "./commons/ResourcesApi";
4
+ import { SdPlatformRequestDocumentCreate } from "@shapediver/api.platform-api-dto-v1";
5
+ export declare type SdPlatformDocumentQueryParameters = SdPlatformQueryParameters<string>;
6
+ export declare type SdPlatformDocumentGetQueryParameters = {
7
+ /**
8
+ * Type of document, can be a comma separated list.
9
+ * For example: 'customer_terms,user_terms,privacy_policy_supplement'
10
+ */
11
+ type?: string;
12
+ /**
13
+ * Filter documents which are active (valid_from in the past) or inactive (valid_from in the future), if defined.
14
+ */
15
+ active?: boolean;
16
+ /**
17
+ * Filter documents which require acceptance or do not require acceptance, if defined.
18
+ */
19
+ requires_acceptance?: boolean;
20
+ /**
21
+ * Filter documents which are relevant to users which are account owners, or users which are not account owners, if defined.
22
+ */
23
+ account_owner?: boolean;
24
+ };
25
+ /**
26
+ * Actions related to Documents.
27
+ */
28
+ export declare class SdPlatformDocumentApi extends ResourcesApi {
29
+ protected get __resourcePath(): string;
30
+ /**
31
+ * Create a document.
32
+ * @param { SdPlatformRequestDocumentCreate } body
33
+ * @returns { Promise<SdPlatformPostResponse<SdPlatformResponseDomainAdmin>> }
34
+ */
35
+ create(body: SdPlatformRequestDocumentCreate): Promise<SdPlatformPostResponse<SdPlatformResponseDomainAdmin>>;
36
+ /**
37
+ * Query documents.
38
+ * @param { SdPlatformDocumentQueryParameters } query
39
+ * @returns { Promise<SdPlatformQueryResponse<SdPlatformResponseDocument>> }
40
+ */
41
+ query(query?: SdPlatformDocumentQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponseDocument>>;
42
+ /**
43
+ * Delete a document.
44
+ * @param { string } id - the id of a document.
45
+ */
46
+ delete(id: string): Promise<SdPlatformDeleteResponse>;
47
+ /**
48
+ * Get a list of documents which are relevant to the requesting user.
49
+ * @param { SdPlatformDocumentGetQueryParameters | undefined | null } query_parameters
50
+ * @returns { Promise<SdPlatformGetResponse<Array<SdPlatformResponseDocumentUser>>> }
51
+ */
52
+ list(query_parameters?: SdPlatformDocumentGetQueryParameters): Promise<SdPlatformGetResponse<Array<SdPlatformResponseDocumentUser>>>;
53
+ /**
54
+ * Download a document.
55
+ * @param { string } document_id_or_type
56
+ * @returns : Promise<SdPlatformGetResponse<void>>
57
+ */
58
+ download(document_id_or_type: string): Promise<SdPlatformGetResponse<void>>;
59
+ /**
60
+ * View a document.
61
+ * @param { string } document_id_or_type
62
+ * @returns : Promise<SdPlatformGetResponse<void>>
63
+ */
64
+ view(document_id_or_type: string): Promise<SdPlatformGetResponse<void>>;
65
+ /**
66
+ * Get a download document url.
67
+ * @param { string } document_id_or_type
68
+ * @returns { string }
69
+ */
70
+ getDownloadUrl(document_id_or_type: string): string;
71
+ /**
72
+ * Get a view document url.
73
+ * @param { string } document_id_or_type
74
+ * @returns { string }
75
+ */
76
+ getViewUrl(document_id_or_type: string): string;
77
+ /**
78
+ * Accept a document
79
+ * @param { string } document_id
80
+ * @param { SdPlatformRequestDocumentAccept } body
81
+ */
82
+ accept(document_id: string, body: SdPlatformRequestDocumentAccept): Promise<SdPlatformPostResponse<void>>;
83
+ }
84
+ //# sourceMappingURL=SdPlatformDocumentApi.d.ts.map
@@ -0,0 +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AC;IAK3I;;;;OAIG;IACI,QAAQ,CAAC,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAKlF;;;;OAIG;IACI,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAK9E;;;;MAIE;IACK,cAAc,CAAC,mBAAmB,EAAE,MAAM,GAAG,MAAM;IAK1D;;;;OAIG;IACI,UAAU,CAAC,mBAAmB,EAAE,MAAM,GAAG,MAAM;IAKtD;;;;OAIG;IACI,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,GAAG,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;CAInH"}
@@ -2,7 +2,7 @@ import { ResourcesApi } from "./commons/ResourcesApi";
2
2
  import { SdPlatformRequestNotificationCreate, SdPlatformRequestNotificationPatch, SdPlatformResponseNotification } from "@shapediver/api.platform-api-dto-v1";
3
3
  import { SdPlatformQueryParameters, SdPlatformQueryResponse, SdPlatformPatchResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
4
4
  export declare enum SdPlatformNotificationEmbeddableFields {
5
- Received = "receiver",
5
+ Receiver = "receiver",
6
6
  User = "user",
7
7
  Model = "model",
8
8
  SavedState = "saved_state",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapediver/sdk.platform-api-sdk-v1",
3
- "version": "1.15.4",
3
+ "version": "2.6.2",
4
4
  "description": "SDK to communicate with the Platform API version 1",
5
5
  "keywords": [
6
6
  "shapediver",
@@ -39,7 +39,7 @@
39
39
  "build-prod": "bash ../../scripts/build-prod.sh"
40
40
  },
41
41
  "dependencies": {
42
- "@shapediver/api.platform-api-dto-v1": "^1.0.4",
42
+ "@shapediver/api.platform-api-dto-v1": "^2.6.0",
43
43
  "@types/q": "^1.5.5",
44
44
  "axios": "^0.26.1",
45
45
  "dotenv": "^16.0.0",
@@ -50,10 +50,10 @@
50
50
  "dotenv-webpack": "7.1.0",
51
51
  "jest": "^27.5.1",
52
52
  "lerna": "3.22.1",
53
- "ts-loader": "^9.2.7",
53
+ "ts-loader": "^9.2.8",
54
54
  "typescript": "^4.6.2",
55
- "webpack": "^5.70.0",
56
- "webpack-cli": "4.9.2",
57
- "webpack-dev-server": "4.7.4"
55
+ "webpack": "^4.46.0",
56
+ "webpack-cli": "4.7.2",
57
+ "webpack-dev-server": "4.1.0"
58
58
  }
59
59
  }