@teemill/platform 0.44.0 → 0.45.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/platform@0.44.0
1
+ ## @teemill/platform@0.45.2
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/platform@0.44.0 --save
39
+ npm install @teemill/platform@0.45.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -62,6 +62,7 @@ Class | Method | HTTP request | Description
62
62
  *EnquiriesApi* | [**listCustomerEnquiries**](docs/EnquiriesApi.md#listcustomerenquiries) | **GET** /v1/platform/{platformId}/customers/enquiries | List customer enquiries
63
63
  *EnquiriesApi* | [**listCustomerEnquiryLogs**](docs/EnquiriesApi.md#listcustomerenquirylogs) | **GET** /v1/platform/{platformId}/customers/enquiries/{enquiryId}/logs | List customer enquiry Logs
64
64
  *EnquiriesApi* | [**updateCustomerEnquiry**](docs/EnquiriesApi.md#updatecustomerenquiry) | **PATCH** /v1/platform/{platformId}/customers/enquiries/{enquiryId} | Update customer enquiry
65
+ *ModerationApi* | [**updateModerationItem**](docs/ModerationApi.md#updatemoderationitem) | **PATCH** /v1/platform/moderate/{moderationItemId} | Update a moderation item
65
66
  *OrdersApi* | [**amendOrder**](docs/OrdersApi.md#amendorder) | **PATCH** /v1/platform/{platformId}/orders/{orderId}/amend | Amend the contents of an order
66
67
  *OrdersApi* | [**confirmOrder**](docs/OrdersApi.md#confirmorder) | **POST** /v1/platform/{platformId}/orders/{orderId}/confirm | Confirm order
67
68
  *OrdersApi* | [**createOrder**](docs/OrdersApi.md#createorder) | **POST** /v1/platform/{platformId}/orders | Create order
@@ -192,6 +193,7 @@ Class | Method | HTTP request | Description
192
193
  - [Terms](docs/Terms.md)
193
194
  - [UpdateCustomerEnquiryRequest](docs/UpdateCustomerEnquiryRequest.md)
194
195
  - [UpdateFulfillmentRequest](docs/UpdateFulfillmentRequest.md)
196
+ - [UpdateModerationItemRequest](docs/UpdateModerationItemRequest.md)
195
197
  - [UpdatePlatformFulfillmentStyleApplicationRequest](docs/UpdatePlatformFulfillmentStyleApplicationRequest.md)
196
198
  - [UpdatePlatformRequest](docs/UpdatePlatformRequest.md)
197
199
  - [ValidationError](docs/ValidationError.md)
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.44.0
7
+ * The version of the OpenAPI document: 0.45.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -568,6 +568,7 @@ export interface Order {
568
568
  */
569
569
  'ref'?: string;
570
570
  'status'?: OrderStatus;
571
+ 'approvalItemId'?: string | null;
571
572
  'contactInformation': ContactInformation;
572
573
  'shippingAddress': Address;
573
574
  'billingAddress'?: Address;
@@ -665,7 +666,8 @@ export const OrderStatus = {
665
666
  Paid: 'paid',
666
667
  Processing: 'processing',
667
668
  Complete: 'complete',
668
- Refunded: 'refunded'
669
+ Refunded: 'refunded',
670
+ Moderation: 'moderation'
669
671
  } as const;
670
672
 
671
673
  export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
@@ -993,6 +995,18 @@ export interface UpdateFulfillmentRequest {
993
995
  */
994
996
  'fulfillerId'?: string;
995
997
  }
998
+ export interface UpdateModerationItemRequest {
999
+ 'judgement': UpdateModerationItemRequestJudgementEnum;
1000
+ 'denialReason'?: string;
1001
+ }
1002
+
1003
+ export const UpdateModerationItemRequestJudgementEnum = {
1004
+ Approved: 'approved',
1005
+ Denied: 'denied'
1006
+ } as const;
1007
+
1008
+ export type UpdateModerationItemRequestJudgementEnum = typeof UpdateModerationItemRequestJudgementEnum[keyof typeof UpdateModerationItemRequestJudgementEnum];
1009
+
996
1010
  export interface UpdatePlatformFulfillmentStyleApplicationRequest {
997
1011
  'design'?: string;
998
1012
  }
@@ -2797,6 +2811,144 @@ export class EnquiriesApi extends BaseAPI {
2797
2811
 
2798
2812
 
2799
2813
 
2814
+ /**
2815
+ * ModerationApi - axios parameter creator
2816
+ */
2817
+ export const ModerationApiAxiosParamCreator = function (configuration?: Configuration) {
2818
+ return {
2819
+ /**
2820
+ * Update a moderation item
2821
+ * @summary Update a moderation item
2822
+ * @param {string} project Project unique identifier
2823
+ * @param {string} moderationItemId The moderation item identifier
2824
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
2825
+ * @param {*} [options] Override http request option.
2826
+ * @throws {RequiredError}
2827
+ */
2828
+ updateModerationItem: async (project: string, moderationItemId: string, updateModerationItemRequest?: UpdateModerationItemRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2829
+ // verify required parameter 'project' is not null or undefined
2830
+ assertParamExists('updateModerationItem', 'project', project)
2831
+ // verify required parameter 'moderationItemId' is not null or undefined
2832
+ assertParamExists('updateModerationItem', 'moderationItemId', moderationItemId)
2833
+ const localVarPath = `/v1/platform/moderate/{moderationItemId}`
2834
+ .replace(`{${"moderationItemId"}}`, encodeURIComponent(String(moderationItemId)));
2835
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2836
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2837
+ let baseOptions;
2838
+ if (configuration) {
2839
+ baseOptions = configuration.baseOptions;
2840
+ }
2841
+
2842
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
2843
+ const localVarHeaderParameter = {} as any;
2844
+ const localVarQueryParameter = {} as any;
2845
+
2846
+ // authentication session-oauth required
2847
+ // oauth required
2848
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2849
+
2850
+ // authentication api-key required
2851
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2852
+
2853
+ if (project !== undefined) {
2854
+ localVarQueryParameter['project'] = project;
2855
+ }
2856
+
2857
+
2858
+
2859
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2860
+
2861
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2862
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2863
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2864
+ localVarRequestOptions.data = serializeDataIfNeeded(updateModerationItemRequest, localVarRequestOptions, configuration)
2865
+
2866
+ return {
2867
+ url: toPathString(localVarUrlObj),
2868
+ options: localVarRequestOptions,
2869
+ };
2870
+ },
2871
+ }
2872
+ };
2873
+
2874
+ /**
2875
+ * ModerationApi - functional programming interface
2876
+ */
2877
+ export const ModerationApiFp = function(configuration?: Configuration) {
2878
+ const localVarAxiosParamCreator = ModerationApiAxiosParamCreator(configuration)
2879
+ return {
2880
+ /**
2881
+ * Update a moderation item
2882
+ * @summary Update a moderation item
2883
+ * @param {string} project Project unique identifier
2884
+ * @param {string} moderationItemId The moderation item identifier
2885
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
2886
+ * @param {*} [options] Override http request option.
2887
+ * @throws {RequiredError}
2888
+ */
2889
+ async updateModerationItem(project: string, moderationItemId: string, updateModerationItemRequest?: UpdateModerationItemRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2890
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateModerationItem(project, moderationItemId, updateModerationItemRequest, options);
2891
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2892
+ const localVarOperationServerBasePath = operationServerMap['ModerationApi.updateModerationItem']?.[localVarOperationServerIndex]?.url;
2893
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2894
+ },
2895
+ }
2896
+ };
2897
+
2898
+ /**
2899
+ * ModerationApi - factory interface
2900
+ */
2901
+ export const ModerationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2902
+ const localVarFp = ModerationApiFp(configuration)
2903
+ return {
2904
+ /**
2905
+ * Update a moderation item
2906
+ * @summary Update a moderation item
2907
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
2908
+ * @param {*} [options] Override http request option.
2909
+ * @throws {RequiredError}
2910
+ */
2911
+ updateModerationItem(requestParameters: ModerationApiUpdateModerationItemRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2912
+ return localVarFp.updateModerationItem(requestParameters.project, requestParameters.moderationItemId, requestParameters.updateModerationItemRequest, options).then((request) => request(axios, basePath));
2913
+ },
2914
+ };
2915
+ };
2916
+
2917
+ /**
2918
+ * Request parameters for updateModerationItem operation in ModerationApi.
2919
+ */
2920
+ export interface ModerationApiUpdateModerationItemRequest {
2921
+ /**
2922
+ * Project unique identifier
2923
+ */
2924
+ readonly project: string
2925
+
2926
+ /**
2927
+ * The moderation item identifier
2928
+ */
2929
+ readonly moderationItemId: string
2930
+
2931
+ readonly updateModerationItemRequest?: UpdateModerationItemRequest
2932
+ }
2933
+
2934
+ /**
2935
+ * ModerationApi - object-oriented interface
2936
+ */
2937
+ export class ModerationApi extends BaseAPI {
2938
+ /**
2939
+ * Update a moderation item
2940
+ * @summary Update a moderation item
2941
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
2942
+ * @param {*} [options] Override http request option.
2943
+ * @throws {RequiredError}
2944
+ */
2945
+ public updateModerationItem(requestParameters: ModerationApiUpdateModerationItemRequest, options?: RawAxiosRequestConfig) {
2946
+ return ModerationApiFp(this.configuration).updateModerationItem(requestParameters.project, requestParameters.moderationItemId, requestParameters.updateModerationItemRequest, options).then((request) => request(this.axios, this.basePath));
2947
+ }
2948
+ }
2949
+
2950
+
2951
+
2800
2952
  /**
2801
2953
  * OrdersApi - axios parameter creator
2802
2954
  */
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.44.0
7
+ * The version of the OpenAPI document: 0.45.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.44.0
7
+ * The version of the OpenAPI document: 0.45.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Platform API
4
4
  * Manage Your podOS platform
5
5
  *
6
- * The version of the OpenAPI document: 0.44.0
6
+ * The version of the OpenAPI document: 0.45.2
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.44.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -540,6 +540,7 @@ export interface Order {
540
540
  */
541
541
  'ref'?: string;
542
542
  'status'?: OrderStatus;
543
+ 'approvalItemId'?: string | null;
543
544
  'contactInformation': ContactInformation;
544
545
  'shippingAddress': Address;
545
546
  'billingAddress'?: Address;
@@ -635,6 +636,7 @@ export declare const OrderStatus: {
635
636
  readonly Processing: "processing";
636
637
  readonly Complete: "complete";
637
638
  readonly Refunded: "refunded";
639
+ readonly Moderation: "moderation";
638
640
  };
639
641
  export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
640
642
  export interface OrderTracking {
@@ -951,6 +953,15 @@ export interface UpdateFulfillmentRequest {
951
953
  */
952
954
  'fulfillerId'?: string;
953
955
  }
956
+ export interface UpdateModerationItemRequest {
957
+ 'judgement': UpdateModerationItemRequestJudgementEnum;
958
+ 'denialReason'?: string;
959
+ }
960
+ export declare const UpdateModerationItemRequestJudgementEnum: {
961
+ readonly Approved: "approved";
962
+ readonly Denied: "denied";
963
+ };
964
+ export type UpdateModerationItemRequestJudgementEnum = typeof UpdateModerationItemRequestJudgementEnum[keyof typeof UpdateModerationItemRequestJudgementEnum];
954
965
  export interface UpdatePlatformFulfillmentStyleApplicationRequest {
955
966
  'design'?: string;
956
967
  }
@@ -1899,6 +1910,76 @@ export declare class EnquiriesApi extends BaseAPI {
1899
1910
  */
1900
1911
  updateCustomerEnquiry(requestParameters: EnquiriesApiUpdateCustomerEnquiryRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Enquiry, any, {}>>;
1901
1912
  }
1913
+ /**
1914
+ * ModerationApi - axios parameter creator
1915
+ */
1916
+ export declare const ModerationApiAxiosParamCreator: (configuration?: Configuration) => {
1917
+ /**
1918
+ * Update a moderation item
1919
+ * @summary Update a moderation item
1920
+ * @param {string} project Project unique identifier
1921
+ * @param {string} moderationItemId The moderation item identifier
1922
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1923
+ * @param {*} [options] Override http request option.
1924
+ * @throws {RequiredError}
1925
+ */
1926
+ updateModerationItem: (project: string, moderationItemId: string, updateModerationItemRequest?: UpdateModerationItemRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1927
+ };
1928
+ /**
1929
+ * ModerationApi - functional programming interface
1930
+ */
1931
+ export declare const ModerationApiFp: (configuration?: Configuration) => {
1932
+ /**
1933
+ * Update a moderation item
1934
+ * @summary Update a moderation item
1935
+ * @param {string} project Project unique identifier
1936
+ * @param {string} moderationItemId The moderation item identifier
1937
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1938
+ * @param {*} [options] Override http request option.
1939
+ * @throws {RequiredError}
1940
+ */
1941
+ updateModerationItem(project: string, moderationItemId: string, updateModerationItemRequest?: UpdateModerationItemRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1942
+ };
1943
+ /**
1944
+ * ModerationApi - factory interface
1945
+ */
1946
+ export declare const ModerationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1947
+ /**
1948
+ * Update a moderation item
1949
+ * @summary Update a moderation item
1950
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1951
+ * @param {*} [options] Override http request option.
1952
+ * @throws {RequiredError}
1953
+ */
1954
+ updateModerationItem(requestParameters: ModerationApiUpdateModerationItemRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1955
+ };
1956
+ /**
1957
+ * Request parameters for updateModerationItem operation in ModerationApi.
1958
+ */
1959
+ export interface ModerationApiUpdateModerationItemRequest {
1960
+ /**
1961
+ * Project unique identifier
1962
+ */
1963
+ readonly project: string;
1964
+ /**
1965
+ * The moderation item identifier
1966
+ */
1967
+ readonly moderationItemId: string;
1968
+ readonly updateModerationItemRequest?: UpdateModerationItemRequest;
1969
+ }
1970
+ /**
1971
+ * ModerationApi - object-oriented interface
1972
+ */
1973
+ export declare class ModerationApi extends BaseAPI {
1974
+ /**
1975
+ * Update a moderation item
1976
+ * @summary Update a moderation item
1977
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1978
+ * @param {*} [options] Override http request option.
1979
+ * @throws {RequiredError}
1980
+ */
1981
+ updateModerationItem(requestParameters: ModerationApiUpdateModerationItemRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1982
+ }
1902
1983
  /**
1903
1984
  * OrdersApi - axios parameter creator
1904
1985
  */
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.44.0
8
+ * The version of the OpenAPI document: 0.45.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PixelsApi = exports.PixelsApiFactory = exports.PixelsApiFp = exports.PixelsApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.ExportOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.ReturnOrderRequestReturnsInnerActionEnum = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.ApplicationPlacementEnum = exports.AmendmentLogAmendmentTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = void 0;
26
- exports.TermsApi = exports.TermsApiFactory = void 0;
25
+ exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PixelsApi = exports.PixelsApiFactory = exports.PixelsApiFp = exports.PixelsApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.ExportOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.ModerationApi = exports.ModerationApiFactory = exports.ModerationApiFp = exports.ModerationApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.UpdateModerationItemRequestJudgementEnum = exports.ReturnOrderRequestReturnsInnerActionEnum = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.ApplicationPlacementEnum = exports.AmendmentLogAmendmentTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = void 0;
26
+ exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -55,7 +55,8 @@ exports.OrderStatus = {
55
55
  Paid: 'paid',
56
56
  Processing: 'processing',
57
57
  Complete: 'complete',
58
- Refunded: 'refunded'
58
+ Refunded: 'refunded',
59
+ Moderation: 'moderation'
59
60
  };
60
61
  exports.PaymentAccountMethodEnum = {
61
62
  Stripe: 'stripe'
@@ -75,6 +76,10 @@ exports.ReturnOrderRequestReturnsInnerActionEnum = {
75
76
  Refund: 'refund',
76
77
  Exchange: 'exchange'
77
78
  };
79
+ exports.UpdateModerationItemRequestJudgementEnum = {
80
+ Approved: 'approved',
81
+ Denied: 'denied'
82
+ };
78
83
  /**
79
84
  * CustomersApi - axios parameter creator
80
85
  */
@@ -1310,6 +1315,119 @@ class EnquiriesApi extends base_1.BaseAPI {
1310
1315
  }
1311
1316
  }
1312
1317
  exports.EnquiriesApi = EnquiriesApi;
1318
+ /**
1319
+ * ModerationApi - axios parameter creator
1320
+ */
1321
+ const ModerationApiAxiosParamCreator = function (configuration) {
1322
+ return {
1323
+ /**
1324
+ * Update a moderation item
1325
+ * @summary Update a moderation item
1326
+ * @param {string} project Project unique identifier
1327
+ * @param {string} moderationItemId The moderation item identifier
1328
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1329
+ * @param {*} [options] Override http request option.
1330
+ * @throws {RequiredError}
1331
+ */
1332
+ updateModerationItem: (project_1, moderationItemId_1, updateModerationItemRequest_1, ...args_1) => __awaiter(this, [project_1, moderationItemId_1, updateModerationItemRequest_1, ...args_1], void 0, function* (project, moderationItemId, updateModerationItemRequest, options = {}) {
1333
+ // verify required parameter 'project' is not null or undefined
1334
+ (0, common_1.assertParamExists)('updateModerationItem', 'project', project);
1335
+ // verify required parameter 'moderationItemId' is not null or undefined
1336
+ (0, common_1.assertParamExists)('updateModerationItem', 'moderationItemId', moderationItemId);
1337
+ const localVarPath = `/v1/platform/moderate/{moderationItemId}`
1338
+ .replace(`{${"moderationItemId"}}`, encodeURIComponent(String(moderationItemId)));
1339
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1340
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1341
+ let baseOptions;
1342
+ if (configuration) {
1343
+ baseOptions = configuration.baseOptions;
1344
+ }
1345
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1346
+ const localVarHeaderParameter = {};
1347
+ const localVarQueryParameter = {};
1348
+ // authentication session-oauth required
1349
+ // oauth required
1350
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1351
+ // authentication api-key required
1352
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1353
+ if (project !== undefined) {
1354
+ localVarQueryParameter['project'] = project;
1355
+ }
1356
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1357
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1358
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1359
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1360
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateModerationItemRequest, localVarRequestOptions, configuration);
1361
+ return {
1362
+ url: (0, common_1.toPathString)(localVarUrlObj),
1363
+ options: localVarRequestOptions,
1364
+ };
1365
+ }),
1366
+ };
1367
+ };
1368
+ exports.ModerationApiAxiosParamCreator = ModerationApiAxiosParamCreator;
1369
+ /**
1370
+ * ModerationApi - functional programming interface
1371
+ */
1372
+ const ModerationApiFp = function (configuration) {
1373
+ const localVarAxiosParamCreator = (0, exports.ModerationApiAxiosParamCreator)(configuration);
1374
+ return {
1375
+ /**
1376
+ * Update a moderation item
1377
+ * @summary Update a moderation item
1378
+ * @param {string} project Project unique identifier
1379
+ * @param {string} moderationItemId The moderation item identifier
1380
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1381
+ * @param {*} [options] Override http request option.
1382
+ * @throws {RequiredError}
1383
+ */
1384
+ updateModerationItem(project, moderationItemId, updateModerationItemRequest, options) {
1385
+ return __awaiter(this, void 0, void 0, function* () {
1386
+ var _a, _b, _c;
1387
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateModerationItem(project, moderationItemId, updateModerationItemRequest, options);
1388
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1389
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModerationApi.updateModerationItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1390
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1391
+ });
1392
+ },
1393
+ };
1394
+ };
1395
+ exports.ModerationApiFp = ModerationApiFp;
1396
+ /**
1397
+ * ModerationApi - factory interface
1398
+ */
1399
+ const ModerationApiFactory = function (configuration, basePath, axios) {
1400
+ const localVarFp = (0, exports.ModerationApiFp)(configuration);
1401
+ return {
1402
+ /**
1403
+ * Update a moderation item
1404
+ * @summary Update a moderation item
1405
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1406
+ * @param {*} [options] Override http request option.
1407
+ * @throws {RequiredError}
1408
+ */
1409
+ updateModerationItem(requestParameters, options) {
1410
+ return localVarFp.updateModerationItem(requestParameters.project, requestParameters.moderationItemId, requestParameters.updateModerationItemRequest, options).then((request) => request(axios, basePath));
1411
+ },
1412
+ };
1413
+ };
1414
+ exports.ModerationApiFactory = ModerationApiFactory;
1415
+ /**
1416
+ * ModerationApi - object-oriented interface
1417
+ */
1418
+ class ModerationApi extends base_1.BaseAPI {
1419
+ /**
1420
+ * Update a moderation item
1421
+ * @summary Update a moderation item
1422
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1423
+ * @param {*} [options] Override http request option.
1424
+ * @throws {RequiredError}
1425
+ */
1426
+ updateModerationItem(requestParameters, options) {
1427
+ return (0, exports.ModerationApiFp)(this.configuration).updateModerationItem(requestParameters.project, requestParameters.moderationItemId, requestParameters.updateModerationItemRequest, options).then((request) => request(this.axios, this.basePath));
1428
+ }
1429
+ }
1430
+ exports.ModerationApi = ModerationApi;
1313
1431
  /**
1314
1432
  * OrdersApi - axios parameter creator
1315
1433
  */
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.44.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.44.0
8
+ * The version of the OpenAPI document: 0.45.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.44.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.44.0
8
+ * The version of the OpenAPI document: 0.45.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.44.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.44.0
7
+ * The version of the OpenAPI document: 0.45.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.44.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -540,6 +540,7 @@ export interface Order {
540
540
  */
541
541
  'ref'?: string;
542
542
  'status'?: OrderStatus;
543
+ 'approvalItemId'?: string | null;
543
544
  'contactInformation': ContactInformation;
544
545
  'shippingAddress': Address;
545
546
  'billingAddress'?: Address;
@@ -635,6 +636,7 @@ export declare const OrderStatus: {
635
636
  readonly Processing: "processing";
636
637
  readonly Complete: "complete";
637
638
  readonly Refunded: "refunded";
639
+ readonly Moderation: "moderation";
638
640
  };
639
641
  export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
640
642
  export interface OrderTracking {
@@ -951,6 +953,15 @@ export interface UpdateFulfillmentRequest {
951
953
  */
952
954
  'fulfillerId'?: string;
953
955
  }
956
+ export interface UpdateModerationItemRequest {
957
+ 'judgement': UpdateModerationItemRequestJudgementEnum;
958
+ 'denialReason'?: string;
959
+ }
960
+ export declare const UpdateModerationItemRequestJudgementEnum: {
961
+ readonly Approved: "approved";
962
+ readonly Denied: "denied";
963
+ };
964
+ export type UpdateModerationItemRequestJudgementEnum = typeof UpdateModerationItemRequestJudgementEnum[keyof typeof UpdateModerationItemRequestJudgementEnum];
954
965
  export interface UpdatePlatformFulfillmentStyleApplicationRequest {
955
966
  'design'?: string;
956
967
  }
@@ -1899,6 +1910,76 @@ export declare class EnquiriesApi extends BaseAPI {
1899
1910
  */
1900
1911
  updateCustomerEnquiry(requestParameters: EnquiriesApiUpdateCustomerEnquiryRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Enquiry, any, {}>>;
1901
1912
  }
1913
+ /**
1914
+ * ModerationApi - axios parameter creator
1915
+ */
1916
+ export declare const ModerationApiAxiosParamCreator: (configuration?: Configuration) => {
1917
+ /**
1918
+ * Update a moderation item
1919
+ * @summary Update a moderation item
1920
+ * @param {string} project Project unique identifier
1921
+ * @param {string} moderationItemId The moderation item identifier
1922
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1923
+ * @param {*} [options] Override http request option.
1924
+ * @throws {RequiredError}
1925
+ */
1926
+ updateModerationItem: (project: string, moderationItemId: string, updateModerationItemRequest?: UpdateModerationItemRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1927
+ };
1928
+ /**
1929
+ * ModerationApi - functional programming interface
1930
+ */
1931
+ export declare const ModerationApiFp: (configuration?: Configuration) => {
1932
+ /**
1933
+ * Update a moderation item
1934
+ * @summary Update a moderation item
1935
+ * @param {string} project Project unique identifier
1936
+ * @param {string} moderationItemId The moderation item identifier
1937
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1938
+ * @param {*} [options] Override http request option.
1939
+ * @throws {RequiredError}
1940
+ */
1941
+ updateModerationItem(project: string, moderationItemId: string, updateModerationItemRequest?: UpdateModerationItemRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1942
+ };
1943
+ /**
1944
+ * ModerationApi - factory interface
1945
+ */
1946
+ export declare const ModerationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1947
+ /**
1948
+ * Update a moderation item
1949
+ * @summary Update a moderation item
1950
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1951
+ * @param {*} [options] Override http request option.
1952
+ * @throws {RequiredError}
1953
+ */
1954
+ updateModerationItem(requestParameters: ModerationApiUpdateModerationItemRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1955
+ };
1956
+ /**
1957
+ * Request parameters for updateModerationItem operation in ModerationApi.
1958
+ */
1959
+ export interface ModerationApiUpdateModerationItemRequest {
1960
+ /**
1961
+ * Project unique identifier
1962
+ */
1963
+ readonly project: string;
1964
+ /**
1965
+ * The moderation item identifier
1966
+ */
1967
+ readonly moderationItemId: string;
1968
+ readonly updateModerationItemRequest?: UpdateModerationItemRequest;
1969
+ }
1970
+ /**
1971
+ * ModerationApi - object-oriented interface
1972
+ */
1973
+ export declare class ModerationApi extends BaseAPI {
1974
+ /**
1975
+ * Update a moderation item
1976
+ * @summary Update a moderation item
1977
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1978
+ * @param {*} [options] Override http request option.
1979
+ * @throws {RequiredError}
1980
+ */
1981
+ updateModerationItem(requestParameters: ModerationApiUpdateModerationItemRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1982
+ }
1902
1983
  /**
1903
1984
  * OrdersApi - axios parameter creator
1904
1985
  */
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.44.0
7
+ * The version of the OpenAPI document: 0.45.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -51,7 +51,8 @@ export const OrderStatus = {
51
51
  Paid: 'paid',
52
52
  Processing: 'processing',
53
53
  Complete: 'complete',
54
- Refunded: 'refunded'
54
+ Refunded: 'refunded',
55
+ Moderation: 'moderation'
55
56
  };
56
57
  export const PaymentAccountMethodEnum = {
57
58
  Stripe: 'stripe'
@@ -71,6 +72,10 @@ export const ReturnOrderRequestReturnsInnerActionEnum = {
71
72
  Refund: 'refund',
72
73
  Exchange: 'exchange'
73
74
  };
75
+ export const UpdateModerationItemRequestJudgementEnum = {
76
+ Approved: 'approved',
77
+ Denied: 'denied'
78
+ };
74
79
  /**
75
80
  * CustomersApi - axios parameter creator
76
81
  */
@@ -1294,6 +1299,115 @@ export class EnquiriesApi extends BaseAPI {
1294
1299
  return EnquiriesApiFp(this.configuration).updateCustomerEnquiry(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, requestParameters.updateCustomerEnquiryRequest, options).then((request) => request(this.axios, this.basePath));
1295
1300
  }
1296
1301
  }
1302
+ /**
1303
+ * ModerationApi - axios parameter creator
1304
+ */
1305
+ export const ModerationApiAxiosParamCreator = function (configuration) {
1306
+ return {
1307
+ /**
1308
+ * Update a moderation item
1309
+ * @summary Update a moderation item
1310
+ * @param {string} project Project unique identifier
1311
+ * @param {string} moderationItemId The moderation item identifier
1312
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1313
+ * @param {*} [options] Override http request option.
1314
+ * @throws {RequiredError}
1315
+ */
1316
+ updateModerationItem: (project_1, moderationItemId_1, updateModerationItemRequest_1, ...args_1) => __awaiter(this, [project_1, moderationItemId_1, updateModerationItemRequest_1, ...args_1], void 0, function* (project, moderationItemId, updateModerationItemRequest, options = {}) {
1317
+ // verify required parameter 'project' is not null or undefined
1318
+ assertParamExists('updateModerationItem', 'project', project);
1319
+ // verify required parameter 'moderationItemId' is not null or undefined
1320
+ assertParamExists('updateModerationItem', 'moderationItemId', moderationItemId);
1321
+ const localVarPath = `/v1/platform/moderate/{moderationItemId}`
1322
+ .replace(`{${"moderationItemId"}}`, encodeURIComponent(String(moderationItemId)));
1323
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1324
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1325
+ let baseOptions;
1326
+ if (configuration) {
1327
+ baseOptions = configuration.baseOptions;
1328
+ }
1329
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1330
+ const localVarHeaderParameter = {};
1331
+ const localVarQueryParameter = {};
1332
+ // authentication session-oauth required
1333
+ // oauth required
1334
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1335
+ // authentication api-key required
1336
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1337
+ if (project !== undefined) {
1338
+ localVarQueryParameter['project'] = project;
1339
+ }
1340
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1341
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1343
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1344
+ localVarRequestOptions.data = serializeDataIfNeeded(updateModerationItemRequest, localVarRequestOptions, configuration);
1345
+ return {
1346
+ url: toPathString(localVarUrlObj),
1347
+ options: localVarRequestOptions,
1348
+ };
1349
+ }),
1350
+ };
1351
+ };
1352
+ /**
1353
+ * ModerationApi - functional programming interface
1354
+ */
1355
+ export const ModerationApiFp = function (configuration) {
1356
+ const localVarAxiosParamCreator = ModerationApiAxiosParamCreator(configuration);
1357
+ return {
1358
+ /**
1359
+ * Update a moderation item
1360
+ * @summary Update a moderation item
1361
+ * @param {string} project Project unique identifier
1362
+ * @param {string} moderationItemId The moderation item identifier
1363
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1364
+ * @param {*} [options] Override http request option.
1365
+ * @throws {RequiredError}
1366
+ */
1367
+ updateModerationItem(project, moderationItemId, updateModerationItemRequest, options) {
1368
+ return __awaiter(this, void 0, void 0, function* () {
1369
+ var _a, _b, _c;
1370
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateModerationItem(project, moderationItemId, updateModerationItemRequest, options);
1371
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1372
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ModerationApi.updateModerationItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1373
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1374
+ });
1375
+ },
1376
+ };
1377
+ };
1378
+ /**
1379
+ * ModerationApi - factory interface
1380
+ */
1381
+ export const ModerationApiFactory = function (configuration, basePath, axios) {
1382
+ const localVarFp = ModerationApiFp(configuration);
1383
+ return {
1384
+ /**
1385
+ * Update a moderation item
1386
+ * @summary Update a moderation item
1387
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1388
+ * @param {*} [options] Override http request option.
1389
+ * @throws {RequiredError}
1390
+ */
1391
+ updateModerationItem(requestParameters, options) {
1392
+ return localVarFp.updateModerationItem(requestParameters.project, requestParameters.moderationItemId, requestParameters.updateModerationItemRequest, options).then((request) => request(axios, basePath));
1393
+ },
1394
+ };
1395
+ };
1396
+ /**
1397
+ * ModerationApi - object-oriented interface
1398
+ */
1399
+ export class ModerationApi extends BaseAPI {
1400
+ /**
1401
+ * Update a moderation item
1402
+ * @summary Update a moderation item
1403
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1404
+ * @param {*} [options] Override http request option.
1405
+ * @throws {RequiredError}
1406
+ */
1407
+ updateModerationItem(requestParameters, options) {
1408
+ return ModerationApiFp(this.configuration).updateModerationItem(requestParameters.project, requestParameters.moderationItemId, requestParameters.updateModerationItemRequest, options).then((request) => request(this.axios, this.basePath));
1409
+ }
1410
+ }
1297
1411
  /**
1298
1412
  * OrdersApi - axios parameter creator
1299
1413
  */
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.44.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.44.0
7
+ * The version of the OpenAPI document: 0.45.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.44.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.44.0
7
+ * The version of the OpenAPI document: 0.45.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.44.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,7 +3,7 @@
3
3
  * Platform API
4
4
  * Manage Your podOS platform
5
5
  *
6
- * The version of the OpenAPI document: 0.44.0
6
+ * The version of the OpenAPI document: 0.45.2
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.44.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.44.0
7
+ * The version of the OpenAPI document: 0.45.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.44.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.44.0
8
+ * The version of the OpenAPI document: 0.45.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,71 @@
1
+ # ModerationApi
2
+
3
+ All URIs are relative to *https://localhost:8080*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**updateModerationItem**](#updatemoderationitem) | **PATCH** /v1/platform/moderate/{moderationItemId} | Update a moderation item|
8
+
9
+ # **updateModerationItem**
10
+ > updateModerationItem()
11
+
12
+ Update a moderation item
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ ModerationApi,
19
+ Configuration,
20
+ UpdateModerationItemRequest
21
+ } from '@teemill/platform';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new ModerationApi(configuration);
25
+
26
+ let project: string; //Project unique identifier (default to undefined)
27
+ let moderationItemId: string; //The moderation item identifier (default to undefined)
28
+ let updateModerationItemRequest: UpdateModerationItemRequest; // (optional)
29
+
30
+ const { status, data } = await apiInstance.updateModerationItem(
31
+ project,
32
+ moderationItemId,
33
+ updateModerationItemRequest
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **updateModerationItemRequest** | **UpdateModerationItemRequest**| | |
42
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
43
+ | **moderationItemId** | [**string**] | The moderation item identifier | defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ void (empty response body)
49
+
50
+ ### Authorization
51
+
52
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: application/json
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**204** | Item has been moderated | - |
64
+ |**400** | Failed validation | - |
65
+ |**401** | Not authorised to access this resource | - |
66
+ |**403** | Refuse to authorize | - |
67
+ |**404** | Resource not found | - |
68
+ |**500** | Unknown server error | - |
69
+
70
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
71
+
package/docs/Order.md CHANGED
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | Unique object identifier | [optional] [default to undefined]
9
9
  **ref** | **string** | A reference to the resource location | [optional] [default to undefined]
10
10
  **status** | [**OrderStatus**](OrderStatus.md) | | [optional] [default to undefined]
11
+ **approvalItemId** | **string** | | [optional] [default to undefined]
11
12
  **contactInformation** | [**ContactInformation**](ContactInformation.md) | | [default to undefined]
12
13
  **shippingAddress** | [**Address**](Address.md) | | [default to undefined]
13
14
  **billingAddress** | [**Address**](Address.md) | | [optional] [default to undefined]
@@ -39,6 +40,7 @@ const instance: Order = {
39
40
  id,
40
41
  ref,
41
42
  status,
43
+ approvalItemId,
42
44
  contactInformation,
43
45
  shippingAddress,
44
46
  billingAddress,
@@ -13,4 +13,6 @@
13
13
 
14
14
  * `Refunded` (value: `'refunded'`)
15
15
 
16
+ * `Moderation` (value: `'moderation'`)
17
+
16
18
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # UpdateModerationItemRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **judgement** | **string** | | [default to undefined]
9
+ **denialReason** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { UpdateModerationItemRequest } from '@teemill/platform';
15
+
16
+ const instance: UpdateModerationItemRequest = {
17
+ judgement,
18
+ denialReason,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.44.0
7
+ * The version of the OpenAPI document: 0.45.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/platform",
3
- "version": "0.44.0",
3
+ "version": "0.45.2",
4
4
  "description": "OpenAPI client for @teemill/platform",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {