ultracart_rest_api_v2_typescript 3.10.35 → 3.10.36
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 +3 -2
- package/api.ts +78 -3
- package/dist/api.d.ts +76 -3
- package/dist/api.js +29 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.10.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.10.36
|
|
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@3.10.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.10.36 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.10.36 | 08/10/2022 | conversation event refactoring |
|
|
57
58
|
| 3.10.35 | 08/05/2022 | conversation adjustments for ES integration |
|
|
58
59
|
| 3.10.34 | 08/05/2022 | conversations query by medium and stats fixes |
|
|
59
60
|
| 3.10.33 | 08/03/2022 | conversation summary participants |
|
package/api.ts
CHANGED
|
@@ -6533,6 +6533,32 @@ export namespace ConversationEventRRWeb {
|
|
|
6533
6533
|
}
|
|
6534
6534
|
}
|
|
6535
6535
|
|
|
6536
|
+
/**
|
|
6537
|
+
*
|
|
6538
|
+
* @export
|
|
6539
|
+
* @interface ConversationEventReadMessage
|
|
6540
|
+
*/
|
|
6541
|
+
export interface ConversationEventReadMessage {
|
|
6542
|
+
/**
|
|
6543
|
+
*
|
|
6544
|
+
* @type {string}
|
|
6545
|
+
* @memberof ConversationEventReadMessage
|
|
6546
|
+
*/
|
|
6547
|
+
conversation_message_uuid?: string;
|
|
6548
|
+
/**
|
|
6549
|
+
* Message date/time
|
|
6550
|
+
* @type {string}
|
|
6551
|
+
* @memberof ConversationEventReadMessage
|
|
6552
|
+
*/
|
|
6553
|
+
message_dts?: string;
|
|
6554
|
+
/**
|
|
6555
|
+
*
|
|
6556
|
+
* @type {number}
|
|
6557
|
+
* @memberof ConversationEventReadMessage
|
|
6558
|
+
*/
|
|
6559
|
+
message_epoch?: number;
|
|
6560
|
+
}
|
|
6561
|
+
|
|
6536
6562
|
/**
|
|
6537
6563
|
*
|
|
6538
6564
|
* @export
|
|
@@ -6613,6 +6639,12 @@ export interface ConversationMessage {
|
|
|
6613
6639
|
* @memberof ConversationMessage
|
|
6614
6640
|
*/
|
|
6615
6641
|
message_dts?: string;
|
|
6642
|
+
/**
|
|
6643
|
+
* Message epoch milliseconds
|
|
6644
|
+
* @type {number}
|
|
6645
|
+
* @memberof ConversationMessage
|
|
6646
|
+
*/
|
|
6647
|
+
message_epoch?: number;
|
|
6616
6648
|
/**
|
|
6617
6649
|
*
|
|
6618
6650
|
* @type {Array<ConversationMessageTransportStatus>}
|
|
@@ -6661,11 +6693,35 @@ export interface ConversationMessageTransportStatus {
|
|
|
6661
6693
|
*/
|
|
6662
6694
|
conversation_participant_arn?: string;
|
|
6663
6695
|
/**
|
|
6664
|
-
*
|
|
6696
|
+
* The status of the message transport
|
|
6665
6697
|
* @type {string}
|
|
6666
6698
|
* @memberof ConversationMessageTransportStatus
|
|
6667
6699
|
*/
|
|
6668
|
-
status?:
|
|
6700
|
+
status?: ConversationMessageTransportStatus.StatusEnum;
|
|
6701
|
+
}
|
|
6702
|
+
|
|
6703
|
+
/**
|
|
6704
|
+
* @export
|
|
6705
|
+
* @namespace ConversationMessageTransportStatus
|
|
6706
|
+
*/
|
|
6707
|
+
export namespace ConversationMessageTransportStatus {
|
|
6708
|
+
/**
|
|
6709
|
+
* @export
|
|
6710
|
+
* @enum {string}
|
|
6711
|
+
*/
|
|
6712
|
+
export enum StatusEnum {
|
|
6713
|
+
Accepted = <any> 'accepted',
|
|
6714
|
+
Scheduled = <any> 'scheduled',
|
|
6715
|
+
Queued = <any> 'queued',
|
|
6716
|
+
Sending = <any> 'sending',
|
|
6717
|
+
Sent = <any> 'sent',
|
|
6718
|
+
Read = <any> 'read',
|
|
6719
|
+
TWILIOCREDENTIALSMISSING = <any> 'TWILIO_CREDENTIALS_MISSING',
|
|
6720
|
+
SENTTOTWILIO = <any> 'SENT_TO_TWILIO',
|
|
6721
|
+
TWILIOERROR = <any> 'TWILIO_ERROR',
|
|
6722
|
+
SENTTOPINPOINT = <any> 'SENT_TO_PINPOINT',
|
|
6723
|
+
PINPOINTERROR = <any> 'PINPOINT_ERROR'
|
|
6724
|
+
}
|
|
6669
6725
|
}
|
|
6670
6726
|
|
|
6671
6727
|
/**
|
|
@@ -6774,6 +6830,12 @@ export interface ConversationParticipant {
|
|
|
6774
6830
|
* @memberof ConversationParticipant
|
|
6775
6831
|
*/
|
|
6776
6832
|
status?: string;
|
|
6833
|
+
/**
|
|
6834
|
+
*
|
|
6835
|
+
* @type {number}
|
|
6836
|
+
* @memberof ConversationParticipant
|
|
6837
|
+
*/
|
|
6838
|
+
unread_messages?: number;
|
|
6777
6839
|
}
|
|
6778
6840
|
|
|
6779
6841
|
/**
|
|
@@ -7261,6 +7323,12 @@ export interface ConversationWebsocketMessage {
|
|
|
7261
7323
|
* @memberof ConversationWebsocketMessage
|
|
7262
7324
|
*/
|
|
7263
7325
|
event_queue_status_update?: ConversationWebchatQueueStatus;
|
|
7326
|
+
/**
|
|
7327
|
+
*
|
|
7328
|
+
* @type {ConversationEventReadMessage}
|
|
7329
|
+
* @memberof ConversationWebsocketMessage
|
|
7330
|
+
*/
|
|
7331
|
+
event_read_message?: ConversationEventReadMessage;
|
|
7264
7332
|
/**
|
|
7265
7333
|
*
|
|
7266
7334
|
* @type {ConversationEventRRWeb}
|
|
@@ -7317,7 +7385,8 @@ export namespace ConversationWebsocketMessage {
|
|
|
7317
7385
|
UpdatedMessage = <any> 'updated message',
|
|
7318
7386
|
QueueStatusUpdate = <any> 'queue status update',
|
|
7319
7387
|
Rrweb = <any> 'rrweb',
|
|
7320
|
-
ParticipantUpdate = <any> 'participant update'
|
|
7388
|
+
ParticipantUpdate = <any> 'participant update',
|
|
7389
|
+
ReadMessage = <any> 'read message'
|
|
7321
7390
|
}
|
|
7322
7391
|
/**
|
|
7323
7392
|
* @export
|
|
@@ -8827,6 +8896,12 @@ export interface CouponMultipleAmountsOffItems {
|
|
|
8827
8896
|
* @interface CouponNoDiscount
|
|
8828
8897
|
*/
|
|
8829
8898
|
export interface CouponNoDiscount {
|
|
8899
|
+
/**
|
|
8900
|
+
* This property does nothing but is included in this object to ensure the object is generated by our sdk builders.
|
|
8901
|
+
* @type {boolean}
|
|
8902
|
+
* @memberof CouponNoDiscount
|
|
8903
|
+
*/
|
|
8904
|
+
ignore_this_property?: boolean;
|
|
8830
8905
|
}
|
|
8831
8906
|
|
|
8832
8907
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -6379,6 +6379,31 @@ export declare namespace ConversationEventRRWeb {
|
|
|
6379
6379
|
Events
|
|
6380
6380
|
}
|
|
6381
6381
|
}
|
|
6382
|
+
/**
|
|
6383
|
+
*
|
|
6384
|
+
* @export
|
|
6385
|
+
* @interface ConversationEventReadMessage
|
|
6386
|
+
*/
|
|
6387
|
+
export interface ConversationEventReadMessage {
|
|
6388
|
+
/**
|
|
6389
|
+
*
|
|
6390
|
+
* @type {string}
|
|
6391
|
+
* @memberof ConversationEventReadMessage
|
|
6392
|
+
*/
|
|
6393
|
+
conversation_message_uuid?: string;
|
|
6394
|
+
/**
|
|
6395
|
+
* Message date/time
|
|
6396
|
+
* @type {string}
|
|
6397
|
+
* @memberof ConversationEventReadMessage
|
|
6398
|
+
*/
|
|
6399
|
+
message_dts?: string;
|
|
6400
|
+
/**
|
|
6401
|
+
*
|
|
6402
|
+
* @type {number}
|
|
6403
|
+
* @memberof ConversationEventReadMessage
|
|
6404
|
+
*/
|
|
6405
|
+
message_epoch?: number;
|
|
6406
|
+
}
|
|
6382
6407
|
/**
|
|
6383
6408
|
*
|
|
6384
6409
|
* @export
|
|
@@ -6458,6 +6483,12 @@ export interface ConversationMessage {
|
|
|
6458
6483
|
* @memberof ConversationMessage
|
|
6459
6484
|
*/
|
|
6460
6485
|
message_dts?: string;
|
|
6486
|
+
/**
|
|
6487
|
+
* Message epoch milliseconds
|
|
6488
|
+
* @type {number}
|
|
6489
|
+
* @memberof ConversationMessage
|
|
6490
|
+
*/
|
|
6491
|
+
message_epoch?: number;
|
|
6461
6492
|
/**
|
|
6462
6493
|
*
|
|
6463
6494
|
* @type {Array<ConversationMessageTransportStatus>}
|
|
@@ -6504,11 +6535,34 @@ export interface ConversationMessageTransportStatus {
|
|
|
6504
6535
|
*/
|
|
6505
6536
|
conversation_participant_arn?: string;
|
|
6506
6537
|
/**
|
|
6507
|
-
*
|
|
6538
|
+
* The status of the message transport
|
|
6508
6539
|
* @type {string}
|
|
6509
6540
|
* @memberof ConversationMessageTransportStatus
|
|
6510
6541
|
*/
|
|
6511
|
-
status?:
|
|
6542
|
+
status?: ConversationMessageTransportStatus.StatusEnum;
|
|
6543
|
+
}
|
|
6544
|
+
/**
|
|
6545
|
+
* @export
|
|
6546
|
+
* @namespace ConversationMessageTransportStatus
|
|
6547
|
+
*/
|
|
6548
|
+
export declare namespace ConversationMessageTransportStatus {
|
|
6549
|
+
/**
|
|
6550
|
+
* @export
|
|
6551
|
+
* @enum {string}
|
|
6552
|
+
*/
|
|
6553
|
+
enum StatusEnum {
|
|
6554
|
+
Accepted,
|
|
6555
|
+
Scheduled,
|
|
6556
|
+
Queued,
|
|
6557
|
+
Sending,
|
|
6558
|
+
Sent,
|
|
6559
|
+
Read,
|
|
6560
|
+
TWILIOCREDENTIALSMISSING,
|
|
6561
|
+
SENTTOTWILIO,
|
|
6562
|
+
TWILIOERROR,
|
|
6563
|
+
SENTTOPINPOINT,
|
|
6564
|
+
PINPOINTERROR
|
|
6565
|
+
}
|
|
6512
6566
|
}
|
|
6513
6567
|
/**
|
|
6514
6568
|
*
|
|
@@ -6614,6 +6668,12 @@ export interface ConversationParticipant {
|
|
|
6614
6668
|
* @memberof ConversationParticipant
|
|
6615
6669
|
*/
|
|
6616
6670
|
status?: string;
|
|
6671
|
+
/**
|
|
6672
|
+
*
|
|
6673
|
+
* @type {number}
|
|
6674
|
+
* @memberof ConversationParticipant
|
|
6675
|
+
*/
|
|
6676
|
+
unread_messages?: number;
|
|
6617
6677
|
}
|
|
6618
6678
|
/**
|
|
6619
6679
|
*
|
|
@@ -7089,6 +7149,12 @@ export interface ConversationWebsocketMessage {
|
|
|
7089
7149
|
* @memberof ConversationWebsocketMessage
|
|
7090
7150
|
*/
|
|
7091
7151
|
event_queue_status_update?: ConversationWebchatQueueStatus;
|
|
7152
|
+
/**
|
|
7153
|
+
*
|
|
7154
|
+
* @type {ConversationEventReadMessage}
|
|
7155
|
+
* @memberof ConversationWebsocketMessage
|
|
7156
|
+
*/
|
|
7157
|
+
event_read_message?: ConversationEventReadMessage;
|
|
7092
7158
|
/**
|
|
7093
7159
|
*
|
|
7094
7160
|
* @type {ConversationEventRRWeb}
|
|
@@ -7144,7 +7210,8 @@ export declare namespace ConversationWebsocketMessage {
|
|
|
7144
7210
|
UpdatedMessage,
|
|
7145
7211
|
QueueStatusUpdate,
|
|
7146
7212
|
Rrweb,
|
|
7147
|
-
ParticipantUpdate
|
|
7213
|
+
ParticipantUpdate,
|
|
7214
|
+
ReadMessage
|
|
7148
7215
|
}
|
|
7149
7216
|
/**
|
|
7150
7217
|
* @export
|
|
@@ -8616,6 +8683,12 @@ export interface CouponMultipleAmountsOffItems {
|
|
|
8616
8683
|
* @interface CouponNoDiscount
|
|
8617
8684
|
*/
|
|
8618
8685
|
export interface CouponNoDiscount {
|
|
8686
|
+
/**
|
|
8687
|
+
* This property does nothing but is included in this object to ensure the object is generated by our sdk builders.
|
|
8688
|
+
* @type {boolean}
|
|
8689
|
+
* @memberof CouponNoDiscount
|
|
8690
|
+
*/
|
|
8691
|
+
ignore_this_property?: boolean;
|
|
8619
8692
|
}
|
|
8620
8693
|
/**
|
|
8621
8694
|
*
|
package/dist/api.js
CHANGED
|
@@ -28,9 +28,9 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
28
28
|
};
|
|
29
29
|
})();
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = void 0;
|
|
31
|
+
exports.Webhook = exports.TempMultimedia = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = exports.ItemShippingDestinationRestriction = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.ConversationWebsocketMessage = exports.ConversationSummary = exports.ConversationMessageTransportStatus = exports.ConversationMessage = exports.ConversationEventRRWeb = exports.Conversation = exports.CheckoutHandoffRequest = exports.ChannelPartnerOrderItem = exports.ChannelPartnerOrder = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
|
|
32
|
+
exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConversationApi = exports.ConversationApiFactory = exports.ConversationApiFp = exports.ConversationApiFetchParamCreator = exports.CheckoutApi = exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChargebackApi = exports.ChargebackApiFactory = exports.ChargebackApiFp = exports.ChargebackApiFetchParamCreator = exports.ChannelPartnerApi = exports.ChannelPartnerApiFactory = exports.ChannelPartnerApiFp = exports.ChannelPartnerApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.Weight = void 0;
|
|
33
|
+
exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = void 0;
|
|
34
34
|
var url = require("url");
|
|
35
35
|
var portableFetch = require("portable-fetch");
|
|
36
36
|
var BASE_PATH = "https://secure.ultracart.com/rest/v2".replace(/\/+$/, "");
|
|
@@ -407,6 +407,31 @@ var ConversationMessage;
|
|
|
407
407
|
TypeEnum[TypeEnum["Notice"] = 'notice'] = "Notice";
|
|
408
408
|
})(TypeEnum = ConversationMessage.TypeEnum || (ConversationMessage.TypeEnum = {}));
|
|
409
409
|
})(ConversationMessage = exports.ConversationMessage || (exports.ConversationMessage = {}));
|
|
410
|
+
/**
|
|
411
|
+
* @export
|
|
412
|
+
* @namespace ConversationMessageTransportStatus
|
|
413
|
+
*/
|
|
414
|
+
var ConversationMessageTransportStatus;
|
|
415
|
+
(function (ConversationMessageTransportStatus) {
|
|
416
|
+
/**
|
|
417
|
+
* @export
|
|
418
|
+
* @enum {string}
|
|
419
|
+
*/
|
|
420
|
+
var StatusEnum;
|
|
421
|
+
(function (StatusEnum) {
|
|
422
|
+
StatusEnum[StatusEnum["Accepted"] = 'accepted'] = "Accepted";
|
|
423
|
+
StatusEnum[StatusEnum["Scheduled"] = 'scheduled'] = "Scheduled";
|
|
424
|
+
StatusEnum[StatusEnum["Queued"] = 'queued'] = "Queued";
|
|
425
|
+
StatusEnum[StatusEnum["Sending"] = 'sending'] = "Sending";
|
|
426
|
+
StatusEnum[StatusEnum["Sent"] = 'sent'] = "Sent";
|
|
427
|
+
StatusEnum[StatusEnum["Read"] = 'read'] = "Read";
|
|
428
|
+
StatusEnum[StatusEnum["TWILIOCREDENTIALSMISSING"] = 'TWILIO_CREDENTIALS_MISSING'] = "TWILIOCREDENTIALSMISSING";
|
|
429
|
+
StatusEnum[StatusEnum["SENTTOTWILIO"] = 'SENT_TO_TWILIO'] = "SENTTOTWILIO";
|
|
430
|
+
StatusEnum[StatusEnum["TWILIOERROR"] = 'TWILIO_ERROR'] = "TWILIOERROR";
|
|
431
|
+
StatusEnum[StatusEnum["SENTTOPINPOINT"] = 'SENT_TO_PINPOINT'] = "SENTTOPINPOINT";
|
|
432
|
+
StatusEnum[StatusEnum["PINPOINTERROR"] = 'PINPOINT_ERROR'] = "PINPOINTERROR";
|
|
433
|
+
})(StatusEnum = ConversationMessageTransportStatus.StatusEnum || (ConversationMessageTransportStatus.StatusEnum = {}));
|
|
434
|
+
})(ConversationMessageTransportStatus = exports.ConversationMessageTransportStatus || (exports.ConversationMessageTransportStatus = {}));
|
|
410
435
|
/**
|
|
411
436
|
* @export
|
|
412
437
|
* @namespace ConversationSummary
|
|
@@ -444,6 +469,7 @@ var ConversationWebsocketMessage;
|
|
|
444
469
|
EventTypeEnum[EventTypeEnum["QueueStatusUpdate"] = 'queue status update'] = "QueueStatusUpdate";
|
|
445
470
|
EventTypeEnum[EventTypeEnum["Rrweb"] = 'rrweb'] = "Rrweb";
|
|
446
471
|
EventTypeEnum[EventTypeEnum["ParticipantUpdate"] = 'participant update'] = "ParticipantUpdate";
|
|
472
|
+
EventTypeEnum[EventTypeEnum["ReadMessage"] = 'read message'] = "ReadMessage";
|
|
447
473
|
})(EventTypeEnum = ConversationWebsocketMessage.EventTypeEnum || (ConversationWebsocketMessage.EventTypeEnum = {}));
|
|
448
474
|
/**
|
|
449
475
|
* @export
|