ultracart_rest_api_v2_typescript 4.0.54-RC → 4.0.57-RC
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/.openapi-generator/FILES +4 -0
- package/README.md +5 -2
- package/dist/apis/CustomerApi.d.ts +30 -1
- package/dist/apis/CustomerApi.js +62 -0
- package/dist/apis/StorefrontApi.d.ts +21 -1
- package/dist/apis/StorefrontApi.js +57 -0
- package/dist/models/CartMarketing.d.ts +6 -0
- package/dist/models/CartMarketing.js +2 -0
- package/dist/models/ConversationParticipant.d.ts +6 -0
- package/dist/models/ConversationParticipant.js +2 -0
- package/dist/models/ConversationWebchatQueueStatusAgent.d.ts +17 -2
- package/dist/models/ConversationWebchatQueueStatusAgent.js +11 -1
- package/dist/models/CustomerMagicLinkResponse.d.ts +54 -0
- package/dist/models/CustomerMagicLinkResponse.js +53 -0
- package/dist/models/ItemReview.d.ts +243 -0
- package/dist/models/ItemReview.js +114 -0
- package/dist/models/ItemReviews.d.ts +7 -0
- package/dist/models/ItemReviews.js +3 -0
- package/dist/models/OrderBilling.d.ts +12 -0
- package/dist/models/OrderBilling.js +4 -0
- package/dist/models/OrderMarketing.d.ts +6 -0
- package/dist/models/OrderMarketing.js +2 -0
- package/dist/models/StoreFront.d.ts +87 -0
- package/dist/models/StoreFront.js +62 -0
- package/dist/models/StoreFrontsResponse.d.ts +55 -0
- package/dist/models/StoreFrontsResponse.js +54 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/CustomerApi.ts +70 -0
- package/src/apis/StorefrontApi.ts +56 -0
- package/src/models/CartMarketing.ts +8 -0
- package/src/models/ConversationParticipant.ts +8 -0
- package/src/models/ConversationWebchatQueueStatusAgent.ts +22 -2
- package/src/models/CustomerMagicLinkResponse.ts +107 -0
- package/src/models/ItemReview.ts +344 -0
- package/src/models/ItemReviews.ts +15 -0
- package/src/models/OrderBilling.ts +16 -0
- package/src/models/OrderMarketing.ts +8 -0
- package/src/models/StoreFront.ts +136 -0
- package/src/models/StoreFrontsResponse.ts +113 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -242,6 +242,7 @@ src/models/CustomerEmailListChanges.ts
|
|
|
242
242
|
src/models/CustomerLoyalty.ts
|
|
243
243
|
src/models/CustomerLoyaltyLedger.ts
|
|
244
244
|
src/models/CustomerLoyaltyRedemption.ts
|
|
245
|
+
src/models/CustomerMagicLinkResponse.ts
|
|
245
246
|
src/models/CustomerMergeRequest.ts
|
|
246
247
|
src/models/CustomerOrdersSummary.ts
|
|
247
248
|
src/models/CustomerPricingTier.ts
|
|
@@ -460,6 +461,7 @@ src/models/ItemResponse.ts
|
|
|
460
461
|
src/models/ItemRestriction.ts
|
|
461
462
|
src/models/ItemRestrictionItem.ts
|
|
462
463
|
src/models/ItemRevguard.ts
|
|
464
|
+
src/models/ItemReview.ts
|
|
463
465
|
src/models/ItemReviews.ts
|
|
464
466
|
src/models/ItemSalesforce.ts
|
|
465
467
|
src/models/ItemShipping.ts
|
|
@@ -629,6 +631,8 @@ src/models/SingleSignOnTokenResponse.ts
|
|
|
629
631
|
src/models/SovosConfig.ts
|
|
630
632
|
src/models/StateProvince.ts
|
|
631
633
|
src/models/StepWaiting.ts
|
|
634
|
+
src/models/StoreFront.ts
|
|
635
|
+
src/models/StoreFrontsResponse.ts
|
|
632
636
|
src/models/TaxCity.ts
|
|
633
637
|
src/models/TaxCountry.ts
|
|
634
638
|
src/models/TaxCountryCode.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.57-RC
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). 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 ultracart_rest_api_v2_typescript@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.57-RC --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,9 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.57-RC | 08/22/2022 | exposing individual reviews within item.review object |
|
|
58
|
+
| 4.0.56-RC | 08/19/2022 | order api - added cell phone fields for sms |
|
|
59
|
+
| 4.0.55-RC | 08/12/2022 | internal code to allow merchant login as customer |
|
|
57
60
|
| 4.0.54-RC | 08/11/2022 | fix entry_dts type on gift certificate ledger |
|
|
58
61
|
| 4.0.53-RC | 08/10/2022 | conversation event refactoring |
|
|
59
62
|
| 4.0.52-RC | 08/05/2022 | conversation adjustments for ES integration |
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AdjustInternalCertificateRequest, AdjustInternalCertificateResponse, BaseResponse, Customer, CustomerEditorValues, CustomerEmailListChanges, CustomerMergeRequest, CustomerQuery, CustomerResponse, CustomerStoreCreditAddRequest, CustomerStoreCreditResponse, CustomersResponse, DataTablesServerSideResponse, EmailListsResponse, EmailVerifyTokenRequest, EmailVerifyTokenResponse, EmailVerifyTokenValidateRequest, EmailVerifyTokenValidateResponse, LookupRequest, LookupResponse } from '../models';
|
|
13
|
+
import { AdjustInternalCertificateRequest, AdjustInternalCertificateResponse, BaseResponse, Customer, CustomerEditorValues, CustomerEmailListChanges, CustomerMagicLinkResponse, CustomerMergeRequest, CustomerQuery, CustomerResponse, CustomerStoreCreditAddRequest, CustomerStoreCreditResponse, CustomersResponse, DataTablesServerSideResponse, EmailListsResponse, EmailVerifyTokenRequest, EmailVerifyTokenResponse, EmailVerifyTokenValidateRequest, EmailVerifyTokenValidateResponse, LookupRequest, LookupResponse } from '../models';
|
|
14
14
|
export interface AddCustomerStoreCreditRequest {
|
|
15
15
|
customerProfileOid: number;
|
|
16
16
|
storeCreditRequest: CustomerStoreCreditAddRequest;
|
|
@@ -81,6 +81,10 @@ export interface GetCustomersForDataTablesRequest {
|
|
|
81
81
|
export interface GetEmailVerificationTokenRequest {
|
|
82
82
|
tokenRequest: EmailVerifyTokenRequest;
|
|
83
83
|
}
|
|
84
|
+
export interface GetMagicLinkRequest {
|
|
85
|
+
customerProfileOid: number;
|
|
86
|
+
storefrontHostName: string;
|
|
87
|
+
}
|
|
84
88
|
export interface InsertCustomerRequest {
|
|
85
89
|
customer: Customer;
|
|
86
90
|
expand?: string;
|
|
@@ -318,6 +322,21 @@ export interface CustomerApiInterface {
|
|
|
318
322
|
* Create a token that can be used to verify a customer email address
|
|
319
323
|
*/
|
|
320
324
|
getEmailVerificationToken(requestParameters: GetEmailVerificationTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailVerifyTokenResponse>;
|
|
325
|
+
/**
|
|
326
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
327
|
+
* @summary getMagicLink
|
|
328
|
+
* @param {number} customerProfileOid The customer_profile_oid of the customer.
|
|
329
|
+
* @param {string} storefrontHostName The storefront to log into.
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
* @memberof CustomerApiInterface
|
|
333
|
+
*/
|
|
334
|
+
getMagicLinkRaw(requestParameters: GetMagicLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerMagicLinkResponse>>;
|
|
335
|
+
/**
|
|
336
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
337
|
+
* getMagicLink
|
|
338
|
+
*/
|
|
339
|
+
getMagicLink(requestParameters: GetMagicLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerMagicLinkResponse>;
|
|
321
340
|
/**
|
|
322
341
|
* Insert a customer on the UltraCart account.
|
|
323
342
|
* @summary Insert a customer
|
|
@@ -532,6 +551,16 @@ export declare class CustomerApi extends runtime.BaseAPI implements CustomerApiI
|
|
|
532
551
|
* Create a token that can be used to verify a customer email address
|
|
533
552
|
*/
|
|
534
553
|
getEmailVerificationToken(requestParameters: GetEmailVerificationTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailVerifyTokenResponse>;
|
|
554
|
+
/**
|
|
555
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
556
|
+
* getMagicLink
|
|
557
|
+
*/
|
|
558
|
+
getMagicLinkRaw(requestParameters: GetMagicLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerMagicLinkResponse>>;
|
|
559
|
+
/**
|
|
560
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
561
|
+
* getMagicLink
|
|
562
|
+
*/
|
|
563
|
+
getMagicLink(requestParameters: GetMagicLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerMagicLinkResponse>;
|
|
535
564
|
/**
|
|
536
565
|
* Insert a customer on the UltraCart account.
|
|
537
566
|
* Insert a customer
|
package/dist/apis/CustomerApi.js
CHANGED
|
@@ -905,6 +905,68 @@ var CustomerApi = /** @class */ (function (_super) {
|
|
|
905
905
|
});
|
|
906
906
|
});
|
|
907
907
|
};
|
|
908
|
+
/**
|
|
909
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
910
|
+
* getMagicLink
|
|
911
|
+
*/
|
|
912
|
+
CustomerApi.prototype.getMagicLinkRaw = function (requestParameters, initOverrides) {
|
|
913
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
914
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
915
|
+
return __generator(this, function (_c) {
|
|
916
|
+
switch (_c.label) {
|
|
917
|
+
case 0:
|
|
918
|
+
if (requestParameters.customerProfileOid === null || requestParameters.customerProfileOid === undefined) {
|
|
919
|
+
throw new runtime.RequiredError('customerProfileOid', 'Required parameter requestParameters.customerProfileOid was null or undefined when calling getMagicLink.');
|
|
920
|
+
}
|
|
921
|
+
if (requestParameters.storefrontHostName === null || requestParameters.storefrontHostName === undefined) {
|
|
922
|
+
throw new runtime.RequiredError('storefrontHostName', 'Required parameter requestParameters.storefrontHostName was null or undefined when calling getMagicLink.');
|
|
923
|
+
}
|
|
924
|
+
queryParameters = {};
|
|
925
|
+
headerParameters = {};
|
|
926
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
927
|
+
// oauth required
|
|
928
|
+
_a = headerParameters;
|
|
929
|
+
_b = "Authorization";
|
|
930
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["customer_write"])];
|
|
931
|
+
case 1:
|
|
932
|
+
// oauth required
|
|
933
|
+
_a[_b] = _c.sent();
|
|
934
|
+
_c.label = 2;
|
|
935
|
+
case 2:
|
|
936
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
937
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
938
|
+
}
|
|
939
|
+
return [4 /*yield*/, this.request({
|
|
940
|
+
path: "/customer/customers/{customer_profile_oid}/magic_link/{storefront_host_name}".replace("{".concat("customer_profile_oid", "}"), encodeURIComponent(String(requestParameters.customerProfileOid))).replace("{".concat("storefront_host_name", "}"), encodeURIComponent(String(requestParameters.storefrontHostName))),
|
|
941
|
+
method: 'PUT',
|
|
942
|
+
headers: headerParameters,
|
|
943
|
+
query: queryParameters,
|
|
944
|
+
}, initOverrides)];
|
|
945
|
+
case 3:
|
|
946
|
+
response = _c.sent();
|
|
947
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.CustomerMagicLinkResponseFromJSON)(jsonValue); })];
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
});
|
|
951
|
+
};
|
|
952
|
+
/**
|
|
953
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
954
|
+
* getMagicLink
|
|
955
|
+
*/
|
|
956
|
+
CustomerApi.prototype.getMagicLink = function (requestParameters, initOverrides) {
|
|
957
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
958
|
+
var response;
|
|
959
|
+
return __generator(this, function (_a) {
|
|
960
|
+
switch (_a.label) {
|
|
961
|
+
case 0: return [4 /*yield*/, this.getMagicLinkRaw(requestParameters, initOverrides)];
|
|
962
|
+
case 1:
|
|
963
|
+
response = _a.sent();
|
|
964
|
+
return [4 /*yield*/, response.value()];
|
|
965
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
966
|
+
}
|
|
967
|
+
});
|
|
968
|
+
});
|
|
969
|
+
};
|
|
908
970
|
/**
|
|
909
971
|
* Insert a customer on the UltraCart account.
|
|
910
972
|
* Insert a customer
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AddLibraryItemRequest, ApplyLibraryItemRequest, ApplyLibraryItemResponse, BaseResponse, CountriesResponse, EmailBaseTemplateListResponse, EmailCampaign, EmailCampaignFolder, EmailCampaignFolderResponse, EmailCampaignFoldersResponse, EmailCampaignResponse, EmailCampaignsResponse, EmailClicksResponse, EmailCommseq, EmailCommseqEmail, EmailCommseqEmailResponse, EmailCommseqEmailSendTestRequest, EmailCommseqEmailSendTestResponse, EmailCommseqEmailsRequest, EmailCommseqEmailsResponse, EmailCommseqPostcard, EmailCommseqPostcardResponse, EmailCommseqPostcardSendTestRequest, EmailCommseqPostcardSendTestResponse, EmailCommseqPostcardsRequest, EmailCommseqPostcardsResponse, EmailCommseqResponse, EmailCommseqSequenceTestRequest, EmailCommseqSequenceTestResponse, EmailCommseqStatResponse, EmailCommseqStepLogsResponse, EmailCommseqWebhookSendTestRequest, EmailCommseqWebhookSendTestResponse, EmailCommseqsResponse, EmailCustomer, EmailCustomerEditorUrlResponse, EmailCustomersResponse, EmailDashboardActivityResponse, EmailDashboardStatsResponse, EmailDomain, EmailEditorTokenResponse, EmailFlow, EmailFlowBackPopulateRequest, EmailFlowBackPopulateResponse, EmailFlowFolder, EmailFlowFolderResponse, EmailFlowFoldersResponse, EmailFlowResponse, EmailFlowsResponse, EmailGlobalSettings, EmailGlobalSettingsResponse, EmailGlobalUnsubscribeRequest, EmailGlobalUnsubscribeResponse, EmailHistogramPropertyNamesResponse, EmailHistogramPropertyValuesResponse, EmailList, EmailListArchiveResponse, EmailListCustomersResponse, EmailListResponse, EmailListSegmentFolder, EmailListSegmentFolderResponse, EmailListSegmentFoldersResponse, EmailListSubscribeResponse, EmailListsResponse, EmailOrdersResponse, EmailPerformanceResponse, EmailPlan, EmailPlanResponse, EmailSegment, EmailSegmentArchiveResponse, EmailSegmentCustomersResponse, EmailSegmentDownloadPrepareResponse, EmailSegmentResponse, EmailSegmentsResponse, EmailSendingDomainResponse, EmailSendingDomainsResponse, EmailSettings, EmailSettingsResponse, EmailStatPostcardSummaryRequest, EmailStatPostcardSummaryResponse, EmailStatSummaryRequest, EmailStatSummaryResponse, EmailStepStatRequest, EmailStepStatResponse, EmailStepWaitingRequest, EmailStepWaitingResponse, EmailTemplate, EmailTemplatesResponse, EmailThirdPartyListImportRequest, EmailThirdPartyProvidersResponse, EmailWebhookEditorValuesResponse, Experiment, ExperimentResponse, ExperimentsResponse, GeocodeRequest, GeocodeResponse, LibraryFilterValuesResponse, LibraryItem, LibraryItemQuery, LibraryItemResponse, LibraryItemsResponse, LookupRequest, LookupResponse, PricingTiersResponse, PublishLibraryItemRequest, ScreenRecordingHeatmapIndexRequest, ScreenRecordingHeatmapIndexResponse, ScreenRecordingHeatmapRequest, ScreenRecordingHeatmapReset, ScreenRecordingHeatmapResponse, ScreenRecordingMerchantNotesRequest, ScreenRecordingPageViewDataResponse, ScreenRecordingQueryRequest, ScreenRecordingQueryResponse, ScreenRecordingResponse, ScreenRecordingSegment, ScreenRecordingSegmentResponse, ScreenRecordingSegmentsResponse, ScreenRecordingSettings, ScreenRecordingSettingsResponse, ScreenRecordingTagsRequest, ScreenRecordingTagsResponse, ScreenshotsResponse, ThumbnailParametersRequest, ThumbnailParametersResponse, TransactionEmail, TransactionEmailListResponse, TransactionEmailResponse, Twilio, TwilioResponse, TwiliosResponse } from '../models';
|
|
13
|
+
import { AddLibraryItemRequest, ApplyLibraryItemRequest, ApplyLibraryItemResponse, BaseResponse, CountriesResponse, EmailBaseTemplateListResponse, EmailCampaign, EmailCampaignFolder, EmailCampaignFolderResponse, EmailCampaignFoldersResponse, EmailCampaignResponse, EmailCampaignsResponse, EmailClicksResponse, EmailCommseq, EmailCommseqEmail, EmailCommseqEmailResponse, EmailCommseqEmailSendTestRequest, EmailCommseqEmailSendTestResponse, EmailCommseqEmailsRequest, EmailCommseqEmailsResponse, EmailCommseqPostcard, EmailCommseqPostcardResponse, EmailCommseqPostcardSendTestRequest, EmailCommseqPostcardSendTestResponse, EmailCommseqPostcardsRequest, EmailCommseqPostcardsResponse, EmailCommseqResponse, EmailCommseqSequenceTestRequest, EmailCommseqSequenceTestResponse, EmailCommseqStatResponse, EmailCommseqStepLogsResponse, EmailCommseqWebhookSendTestRequest, EmailCommseqWebhookSendTestResponse, EmailCommseqsResponse, EmailCustomer, EmailCustomerEditorUrlResponse, EmailCustomersResponse, EmailDashboardActivityResponse, EmailDashboardStatsResponse, EmailDomain, EmailEditorTokenResponse, EmailFlow, EmailFlowBackPopulateRequest, EmailFlowBackPopulateResponse, EmailFlowFolder, EmailFlowFolderResponse, EmailFlowFoldersResponse, EmailFlowResponse, EmailFlowsResponse, EmailGlobalSettings, EmailGlobalSettingsResponse, EmailGlobalUnsubscribeRequest, EmailGlobalUnsubscribeResponse, EmailHistogramPropertyNamesResponse, EmailHistogramPropertyValuesResponse, EmailList, EmailListArchiveResponse, EmailListCustomersResponse, EmailListResponse, EmailListSegmentFolder, EmailListSegmentFolderResponse, EmailListSegmentFoldersResponse, EmailListSubscribeResponse, EmailListsResponse, EmailOrdersResponse, EmailPerformanceResponse, EmailPlan, EmailPlanResponse, EmailSegment, EmailSegmentArchiveResponse, EmailSegmentCustomersResponse, EmailSegmentDownloadPrepareResponse, EmailSegmentResponse, EmailSegmentsResponse, EmailSendingDomainResponse, EmailSendingDomainsResponse, EmailSettings, EmailSettingsResponse, EmailStatPostcardSummaryRequest, EmailStatPostcardSummaryResponse, EmailStatSummaryRequest, EmailStatSummaryResponse, EmailStepStatRequest, EmailStepStatResponse, EmailStepWaitingRequest, EmailStepWaitingResponse, EmailTemplate, EmailTemplatesResponse, EmailThirdPartyListImportRequest, EmailThirdPartyProvidersResponse, EmailWebhookEditorValuesResponse, Experiment, ExperimentResponse, ExperimentsResponse, GeocodeRequest, GeocodeResponse, LibraryFilterValuesResponse, LibraryItem, LibraryItemQuery, LibraryItemResponse, LibraryItemsResponse, LookupRequest, LookupResponse, PricingTiersResponse, PublishLibraryItemRequest, ScreenRecordingHeatmapIndexRequest, ScreenRecordingHeatmapIndexResponse, ScreenRecordingHeatmapRequest, ScreenRecordingHeatmapReset, ScreenRecordingHeatmapResponse, ScreenRecordingMerchantNotesRequest, ScreenRecordingPageViewDataResponse, ScreenRecordingQueryRequest, ScreenRecordingQueryResponse, ScreenRecordingResponse, ScreenRecordingSegment, ScreenRecordingSegmentResponse, ScreenRecordingSegmentsResponse, ScreenRecordingSettings, ScreenRecordingSettingsResponse, ScreenRecordingTagsRequest, ScreenRecordingTagsResponse, ScreenshotsResponse, StoreFrontsResponse, ThumbnailParametersRequest, ThumbnailParametersResponse, TransactionEmail, TransactionEmailListResponse, TransactionEmailResponse, Twilio, TwilioResponse, TwiliosResponse } from '../models';
|
|
14
14
|
export interface AddToLibraryRequest {
|
|
15
15
|
addLibraryRequest: AddLibraryItemRequest;
|
|
16
16
|
}
|
|
@@ -2108,6 +2108,18 @@ export interface StorefrontApiInterface {
|
|
|
2108
2108
|
* Retrieve pricing tiers
|
|
2109
2109
|
*/
|
|
2110
2110
|
getStoreFrontPricingTiers(requestParameters: GetStoreFrontPricingTiersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PricingTiersResponse>;
|
|
2111
|
+
/**
|
|
2112
|
+
*
|
|
2113
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
2114
|
+
* @param {*} [options] Override http request option.
|
|
2115
|
+
* @throws {RequiredError}
|
|
2116
|
+
* @memberof StorefrontApiInterface
|
|
2117
|
+
*/
|
|
2118
|
+
getStoreFrontsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StoreFrontsResponse>>;
|
|
2119
|
+
/**
|
|
2120
|
+
* Get storefronts (internal use only for security reasons)
|
|
2121
|
+
*/
|
|
2122
|
+
getStoreFronts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StoreFrontsResponse>;
|
|
2111
2123
|
/**
|
|
2112
2124
|
*
|
|
2113
2125
|
* @summary Get thumbnail parameters
|
|
@@ -3855,6 +3867,14 @@ export declare class StorefrontApi extends runtime.BaseAPI implements Storefront
|
|
|
3855
3867
|
* Retrieve pricing tiers
|
|
3856
3868
|
*/
|
|
3857
3869
|
getStoreFrontPricingTiers(requestParameters?: GetStoreFrontPricingTiersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PricingTiersResponse>;
|
|
3870
|
+
/**
|
|
3871
|
+
* Get storefronts (internal use only for security reasons)
|
|
3872
|
+
*/
|
|
3873
|
+
getStoreFrontsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StoreFrontsResponse>>;
|
|
3874
|
+
/**
|
|
3875
|
+
* Get storefronts (internal use only for security reasons)
|
|
3876
|
+
*/
|
|
3877
|
+
getStoreFronts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StoreFrontsResponse>;
|
|
3858
3878
|
/**
|
|
3859
3879
|
* Get thumbnail parameters
|
|
3860
3880
|
*/
|
|
@@ -6440,6 +6440,63 @@ var StorefrontApi = /** @class */ (function (_super) {
|
|
|
6440
6440
|
});
|
|
6441
6441
|
});
|
|
6442
6442
|
};
|
|
6443
|
+
/**
|
|
6444
|
+
* Get storefronts (internal use only for security reasons)
|
|
6445
|
+
*/
|
|
6446
|
+
StorefrontApi.prototype.getStoreFrontsRaw = function (initOverrides) {
|
|
6447
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6448
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
6449
|
+
return __generator(this, function (_c) {
|
|
6450
|
+
switch (_c.label) {
|
|
6451
|
+
case 0:
|
|
6452
|
+
queryParameters = {};
|
|
6453
|
+
headerParameters = {};
|
|
6454
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6455
|
+
headerParameters["x-ultracart-browser-key"] = this.configuration.apiKey("x-ultracart-browser-key"); // ultraCartBrowserApiKey authentication
|
|
6456
|
+
}
|
|
6457
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
6458
|
+
// oauth required
|
|
6459
|
+
_a = headerParameters;
|
|
6460
|
+
_b = "Authorization";
|
|
6461
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "chargeback_read", "chargeback_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write"])];
|
|
6462
|
+
case 1:
|
|
6463
|
+
// oauth required
|
|
6464
|
+
_a[_b] = _c.sent();
|
|
6465
|
+
_c.label = 2;
|
|
6466
|
+
case 2:
|
|
6467
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6468
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
6469
|
+
}
|
|
6470
|
+
return [4 /*yield*/, this.request({
|
|
6471
|
+
path: "/storefront",
|
|
6472
|
+
method: 'GET',
|
|
6473
|
+
headers: headerParameters,
|
|
6474
|
+
query: queryParameters,
|
|
6475
|
+
}, initOverrides)];
|
|
6476
|
+
case 3:
|
|
6477
|
+
response = _c.sent();
|
|
6478
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.StoreFrontsResponseFromJSON)(jsonValue); })];
|
|
6479
|
+
}
|
|
6480
|
+
});
|
|
6481
|
+
});
|
|
6482
|
+
};
|
|
6483
|
+
/**
|
|
6484
|
+
* Get storefronts (internal use only for security reasons)
|
|
6485
|
+
*/
|
|
6486
|
+
StorefrontApi.prototype.getStoreFronts = function (initOverrides) {
|
|
6487
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6488
|
+
var response;
|
|
6489
|
+
return __generator(this, function (_a) {
|
|
6490
|
+
switch (_a.label) {
|
|
6491
|
+
case 0: return [4 /*yield*/, this.getStoreFrontsRaw(initOverrides)];
|
|
6492
|
+
case 1:
|
|
6493
|
+
response = _a.sent();
|
|
6494
|
+
return [4 /*yield*/, response.value()];
|
|
6495
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
6496
|
+
}
|
|
6497
|
+
});
|
|
6498
|
+
});
|
|
6499
|
+
};
|
|
6443
6500
|
/**
|
|
6444
6501
|
* Get thumbnail parameters
|
|
6445
6502
|
*/
|
|
@@ -21,6 +21,12 @@ export interface CartMarketing {
|
|
|
21
21
|
* @memberof CartMarketing
|
|
22
22
|
*/
|
|
23
23
|
advertising_source?: string;
|
|
24
|
+
/**
|
|
25
|
+
* True if the customer agrees to receiving marketing SMS messages
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof CartMarketing
|
|
28
|
+
*/
|
|
29
|
+
cell_phone_opt_in?: boolean;
|
|
24
30
|
/**
|
|
25
31
|
* True if the customer agrees to receiving marketing emails
|
|
26
32
|
* @type {boolean}
|
|
@@ -25,6 +25,7 @@ function CartMarketingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'advertising_source': !(0, runtime_1.exists)(json, 'advertising_source') ? undefined : json['advertising_source'],
|
|
28
|
+
'cell_phone_opt_in': !(0, runtime_1.exists)(json, 'cell_phone_opt_in') ? undefined : json['cell_phone_opt_in'],
|
|
28
29
|
'mailing_list_opt_in': !(0, runtime_1.exists)(json, 'mailing_list_opt_in') ? undefined : json['mailing_list_opt_in'],
|
|
29
30
|
};
|
|
30
31
|
}
|
|
@@ -38,6 +39,7 @@ function CartMarketingToJSON(value) {
|
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
40
41
|
'advertising_source': value.advertising_source,
|
|
42
|
+
'cell_phone_opt_in': value.cell_phone_opt_in,
|
|
41
43
|
'mailing_list_opt_in': value.mailing_list_opt_in,
|
|
42
44
|
};
|
|
43
45
|
}
|
|
@@ -30,6 +30,7 @@ function ConversationParticipantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'joined_dts': !(0, runtime_1.exists)(json, 'joined_dts') ? undefined : json['joined_dts'],
|
|
31
31
|
'last_message_dts': !(0, runtime_1.exists)(json, 'last_message_dts') ? undefined : json['last_message_dts'],
|
|
32
32
|
'left_dts': !(0, runtime_1.exists)(json, 'left_dts') ? undefined : json['left_dts'],
|
|
33
|
+
'profile_image_url': !(0, runtime_1.exists)(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
33
34
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
34
35
|
'unread_messages': !(0, runtime_1.exists)(json, 'unread_messages') ? undefined : json['unread_messages'],
|
|
35
36
|
};
|
|
@@ -49,6 +50,7 @@ function ConversationParticipantToJSON(value) {
|
|
|
49
50
|
'joined_dts': value.joined_dts,
|
|
50
51
|
'last_message_dts': value.last_message_dts,
|
|
51
52
|
'left_dts': value.left_dts,
|
|
53
|
+
'profile_image_url': value.profile_image_url,
|
|
52
54
|
'status': value.status,
|
|
53
55
|
'unread_messages': value.unread_messages,
|
|
54
56
|
};
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ConversationWebchatQueueStatusAgent {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Status of the agent
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ConversationWebchatQueueStatusAgent
|
|
22
22
|
*/
|
|
23
|
-
agent_status?:
|
|
23
|
+
agent_status?: ConversationWebchatQueueStatusAgentAgentStatusEnum;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
@@ -45,7 +45,22 @@ export interface ConversationWebchatQueueStatusAgent {
|
|
|
45
45
|
* @memberof ConversationWebchatQueueStatusAgent
|
|
46
46
|
*/
|
|
47
47
|
next_round_robin?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Profile image URL
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ConversationWebchatQueueStatusAgent
|
|
52
|
+
*/
|
|
53
|
+
profile_image_url?: string;
|
|
48
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const ConversationWebchatQueueStatusAgentAgentStatusEnum: {
|
|
59
|
+
readonly Available: "available";
|
|
60
|
+
readonly Busy: "busy";
|
|
61
|
+
readonly Unavailable: "unavailable";
|
|
62
|
+
};
|
|
63
|
+
export declare type ConversationWebchatQueueStatusAgentAgentStatusEnum = typeof ConversationWebchatQueueStatusAgentAgentStatusEnum[keyof typeof ConversationWebchatQueueStatusAgentAgentStatusEnum];
|
|
49
64
|
export declare function ConversationWebchatQueueStatusAgentFromJSON(json: any): ConversationWebchatQueueStatusAgent;
|
|
50
65
|
export declare function ConversationWebchatQueueStatusAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebchatQueueStatusAgent;
|
|
51
66
|
export declare function ConversationWebchatQueueStatusAgentToJSON(value?: ConversationWebchatQueueStatusAgent | null): any;
|
|
@@ -13,8 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConversationWebchatQueueStatusAgentToJSON = exports.ConversationWebchatQueueStatusAgentFromJSONTyped = exports.ConversationWebchatQueueStatusAgentFromJSON = void 0;
|
|
16
|
+
exports.ConversationWebchatQueueStatusAgentToJSON = exports.ConversationWebchatQueueStatusAgentFromJSONTyped = exports.ConversationWebchatQueueStatusAgentFromJSON = exports.ConversationWebchatQueueStatusAgentAgentStatusEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ConversationWebchatQueueStatusAgentAgentStatusEnum = {
|
|
22
|
+
Available: 'available',
|
|
23
|
+
Busy: 'busy',
|
|
24
|
+
Unavailable: 'unavailable'
|
|
25
|
+
};
|
|
18
26
|
function ConversationWebchatQueueStatusAgentFromJSON(json) {
|
|
19
27
|
return ConversationWebchatQueueStatusAgentFromJSONTyped(json, false);
|
|
20
28
|
}
|
|
@@ -29,6 +37,7 @@ function ConversationWebchatQueueStatusAgentFromJSONTyped(json, ignoreDiscrimina
|
|
|
29
37
|
'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
|
|
30
38
|
'last_chat_dts': !(0, runtime_1.exists)(json, 'last_chat_dts') ? undefined : json['last_chat_dts'],
|
|
31
39
|
'next_round_robin': !(0, runtime_1.exists)(json, 'next_round_robin') ? undefined : json['next_round_robin'],
|
|
40
|
+
'profile_image_url': !(0, runtime_1.exists)(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
32
41
|
};
|
|
33
42
|
}
|
|
34
43
|
exports.ConversationWebchatQueueStatusAgentFromJSONTyped = ConversationWebchatQueueStatusAgentFromJSONTyped;
|
|
@@ -45,6 +54,7 @@ function ConversationWebchatQueueStatusAgentToJSON(value) {
|
|
|
45
54
|
'conversation_participant_name': value.conversation_participant_name,
|
|
46
55
|
'last_chat_dts': value.last_chat_dts,
|
|
47
56
|
'next_round_robin': value.next_round_robin,
|
|
57
|
+
'profile_image_url': value.profile_image_url,
|
|
48
58
|
};
|
|
49
59
|
}
|
|
50
60
|
exports.ConversationWebchatQueueStatusAgentToJSON = ConversationWebchatQueueStatusAgentToJSON;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ModelError } from './ModelError';
|
|
13
|
+
import { ResponseMetadata } from './ResponseMetadata';
|
|
14
|
+
import { Warning } from './Warning';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CustomerMagicLinkResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface CustomerMagicLinkResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {ModelError}
|
|
24
|
+
* @memberof CustomerMagicLinkResponse
|
|
25
|
+
*/
|
|
26
|
+
error?: ModelError;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {ResponseMetadata}
|
|
30
|
+
* @memberof CustomerMagicLinkResponse
|
|
31
|
+
*/
|
|
32
|
+
metadata?: ResponseMetadata;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates if API call was successful
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
* @memberof CustomerMagicLinkResponse
|
|
37
|
+
*/
|
|
38
|
+
success?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* URL
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof CustomerMagicLinkResponse
|
|
43
|
+
*/
|
|
44
|
+
url?: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Warning}
|
|
48
|
+
* @memberof CustomerMagicLinkResponse
|
|
49
|
+
*/
|
|
50
|
+
warning?: Warning;
|
|
51
|
+
}
|
|
52
|
+
export declare function CustomerMagicLinkResponseFromJSON(json: any): CustomerMagicLinkResponse;
|
|
53
|
+
export declare function CustomerMagicLinkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerMagicLinkResponse;
|
|
54
|
+
export declare function CustomerMagicLinkResponseToJSON(value?: CustomerMagicLinkResponse | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CustomerMagicLinkResponseToJSON = exports.CustomerMagicLinkResponseFromJSONTyped = exports.CustomerMagicLinkResponseFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ModelError_1 = require("./ModelError");
|
|
19
|
+
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
20
|
+
var Warning_1 = require("./Warning");
|
|
21
|
+
function CustomerMagicLinkResponseFromJSON(json) {
|
|
22
|
+
return CustomerMagicLinkResponseFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
exports.CustomerMagicLinkResponseFromJSON = CustomerMagicLinkResponseFromJSON;
|
|
25
|
+
function CustomerMagicLinkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
31
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
32
|
+
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
33
|
+
'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'],
|
|
34
|
+
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.CustomerMagicLinkResponseFromJSONTyped = CustomerMagicLinkResponseFromJSONTyped;
|
|
38
|
+
function CustomerMagicLinkResponseToJSON(value) {
|
|
39
|
+
if (value === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
if (value === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
47
|
+
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
48
|
+
'success': value.success,
|
|
49
|
+
'url': value.url,
|
|
50
|
+
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.CustomerMagicLinkResponseToJSON = CustomerMagicLinkResponseToJSON;
|