twilio 6.0.0 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/lib/rest/ConversationsBase.d.ts +3 -0
  2. package/lib/rest/ConversationsBase.js +5 -0
  3. package/lib/rest/InsightsBase.d.ts +3 -0
  4. package/lib/rest/InsightsBase.js +5 -0
  5. package/lib/rest/IntelligenceBase.d.ts +3 -0
  6. package/lib/rest/IntelligenceBase.js +5 -0
  7. package/lib/rest/KnowledgeBase.d.ts +3 -0
  8. package/lib/rest/KnowledgeBase.js +5 -0
  9. package/lib/rest/Memory.d.ts +4 -0
  10. package/lib/rest/Memory.js +8 -0
  11. package/lib/rest/MemoryBase.d.ts +13 -0
  12. package/lib/rest/MemoryBase.js +31 -0
  13. package/lib/rest/Twilio.d.ts +5 -0
  14. package/lib/rest/Twilio.js +5 -0
  15. package/lib/rest/VoiceBase.d.ts +3 -0
  16. package/lib/rest/VoiceBase.js +5 -0
  17. package/lib/rest/api/v2010/account/call/recording.d.ts +2 -0
  18. package/lib/rest/api/v2010/account/call/recording.js +4 -0
  19. package/lib/rest/api/v2010/account/call/transcription.d.ts +1 -1
  20. package/lib/rest/api/v2010/account/call/transcription.js +6 -4
  21. package/lib/rest/api/v2010/account/call.d.ts +2 -0
  22. package/lib/rest/api/v2010/account/call.js +4 -0
  23. package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -0
  24. package/lib/rest/api/v2010/account/conference/participant.js +4 -0
  25. package/lib/rest/conversations/V2.d.ts +38 -0
  26. package/lib/rest/conversations/V2.js +72 -0
  27. package/lib/rest/conversations/v2/action.d.ts +241 -0
  28. package/lib/rest/conversations/v2/action.js +246 -0
  29. package/lib/rest/conversations/v2/communication.d.ts +479 -0
  30. package/lib/rest/conversations/v2/communication.js +436 -0
  31. package/lib/rest/conversations/v2/configuration.d.ts +906 -0
  32. package/lib/rest/conversations/v2/configuration.js +619 -0
  33. package/lib/rest/conversations/v2/conversation.d.ts +936 -0
  34. package/lib/rest/conversations/v2/conversation.js +664 -0
  35. package/lib/rest/conversations/v2/operation.d.ts +167 -0
  36. package/lib/rest/conversations/v2/operation.js +170 -0
  37. package/lib/rest/conversations/v2/participant.d.ts +469 -0
  38. package/lib/rest/conversations/v2/participant.js +442 -0
  39. package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +1 -1
  40. package/lib/rest/flexApi/v1/plugin/pluginVersions.js +8 -6
  41. package/lib/rest/insights/V3.d.ts +20 -0
  42. package/lib/rest/insights/V3.js +42 -0
  43. package/lib/rest/insights/v1/call/callSummary.d.ts +10 -10
  44. package/lib/rest/insights/v1/call/event.d.ts +4 -4
  45. package/lib/rest/insights/v1/callSummaries.d.ts +12 -9
  46. package/lib/rest/insights/v3/metadata.d.ts +115 -0
  47. package/lib/rest/insights/v3/metadata.js +118 -0
  48. package/lib/rest/insights/v3/query.d.ts +180 -0
  49. package/lib/rest/insights/v3/query.js +214 -0
  50. package/lib/rest/intelligence/V3.d.ts +35 -0
  51. package/lib/rest/intelligence/V3.js +65 -0
  52. package/lib/rest/intelligence/v3/configuration.d.ts +693 -0
  53. package/lib/rest/intelligence/v3/configuration.js +528 -0
  54. package/lib/rest/intelligence/v3/conversation.d.ts +478 -0
  55. package/lib/rest/intelligence/v3/conversation.js +342 -0
  56. package/lib/rest/intelligence/v3/operator.d.ts +619 -0
  57. package/lib/rest/intelligence/v3/operator.js +493 -0
  58. package/lib/rest/intelligence/v3/operatorResult.d.ts +543 -0
  59. package/lib/rest/intelligence/v3/operatorResult.js +478 -0
  60. package/lib/rest/intelligence/v3/version.d.ts +469 -0
  61. package/lib/rest/intelligence/v3/version.js +341 -0
  62. package/lib/rest/knowledge/V2.d.ts +31 -0
  63. package/lib/rest/knowledge/V2.js +62 -0
  64. package/lib/rest/knowledge/v2/chunk.d.ts +209 -0
  65. package/lib/rest/knowledge/v2/chunk.js +178 -0
  66. package/lib/rest/knowledge/v2/knowledge.d.ts +507 -0
  67. package/lib/rest/knowledge/v2/knowledge.js +466 -0
  68. package/lib/rest/knowledge/v2/knowledgeBasis.d.ts +484 -0
  69. package/lib/rest/knowledge/v2/knowledgeBasis.js +441 -0
  70. package/lib/rest/knowledge/v2/operation.d.ts +162 -0
  71. package/lib/rest/knowledge/v2/operation.js +175 -0
  72. package/lib/rest/knowledge/v2/search.d.ts +180 -0
  73. package/lib/rest/knowledge/v2/search.js +174 -0
  74. package/lib/rest/memory/V1.d.ts +76 -0
  75. package/lib/rest/memory/V1.js +140 -0
  76. package/lib/rest/memory/v1/bulk.d.ts +129 -0
  77. package/lib/rest/memory/v1/bulk.js +158 -0
  78. package/lib/rest/memory/v1/conversationSummary.d.ts +531 -0
  79. package/lib/rest/memory/v1/conversationSummary.js +473 -0
  80. package/lib/rest/memory/v1/dataMapping.d.ts +630 -0
  81. package/lib/rest/memory/v1/dataMapping.js +512 -0
  82. package/lib/rest/memory/v1/event.d.ts +153 -0
  83. package/lib/rest/memory/v1/event.js +159 -0
  84. package/lib/rest/memory/v1/identifier.d.ts +362 -0
  85. package/lib/rest/memory/v1/identifier.js +369 -0
  86. package/lib/rest/memory/v1/identityResolutionSetting.d.ts +247 -0
  87. package/lib/rest/memory/v1/identityResolutionSetting.js +229 -0
  88. package/lib/rest/memory/v1/import.d.ts +292 -0
  89. package/lib/rest/memory/v1/import.js +280 -0
  90. package/lib/rest/memory/v1/lookup.d.ts +82 -0
  91. package/lib/rest/memory/v1/lookup.js +118 -0
  92. package/lib/rest/memory/v1/observation.d.ts +521 -0
  93. package/lib/rest/memory/v1/observation.js +477 -0
  94. package/lib/rest/memory/v1/operation.d.ts +162 -0
  95. package/lib/rest/memory/v1/operation.js +175 -0
  96. package/lib/rest/memory/v1/profile.d.ts +548 -0
  97. package/lib/rest/memory/v1/profile.js +531 -0
  98. package/lib/rest/memory/v1/recall.d.ts +306 -0
  99. package/lib/rest/memory/v1/recall.js +234 -0
  100. package/lib/rest/memory/v1/revision.d.ts +246 -0
  101. package/lib/rest/memory/v1/revision.js +195 -0
  102. package/lib/rest/memory/v1/store.d.ts +544 -0
  103. package/lib/rest/memory/v1/store.js +534 -0
  104. package/lib/rest/memory/v1/trait.d.ts +233 -0
  105. package/lib/rest/memory/v1/trait.js +190 -0
  106. package/lib/rest/memory/v1/traitGroup.d.ts +758 -0
  107. package/lib/rest/memory/v1/traitGroup.js +555 -0
  108. package/lib/rest/messaging/v2/channelsSender.d.ts +8 -0
  109. package/lib/rest/messaging/v2/channelsSender.js +2 -0
  110. package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +32 -0
  111. package/lib/rest/previewIam/versionless/organization/roleAssignment.js +14 -0
  112. package/lib/rest/studio/v2/flow.d.ts +4 -0
  113. package/lib/rest/studio/v2/flow.js +8 -0
  114. package/lib/rest/verify/v2/service/webhook.d.ts +2 -2
  115. package/lib/rest/verify/v2/service/webhook.js +8 -8
  116. package/lib/rest/voice/V3.d.ts +15 -0
  117. package/lib/rest/voice/V3.js +37 -0
  118. package/lib/rest/voice/v3/transcription.d.ts +378 -0
  119. package/lib/rest/voice/v3/transcription.js +264 -0
  120. package/lib/twiml/VoiceResponse.d.ts +8 -0
  121. package/package.json +1 -1
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio Memory API
9
+ * APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator.
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ const Version_1 = __importDefault(require("../../base/Version"));
20
+ const bulk_1 = require("./v1/bulk");
21
+ const conversationSummary_1 = require("./v1/conversationSummary");
22
+ const dataMapping_1 = require("./v1/dataMapping");
23
+ const event_1 = require("./v1/event");
24
+ const identifier_1 = require("./v1/identifier");
25
+ const identityResolutionSetting_1 = require("./v1/identityResolutionSetting");
26
+ const import_1 = require("./v1/import");
27
+ const lookup_1 = require("./v1/lookup");
28
+ const observation_1 = require("./v1/observation");
29
+ const operation_1 = require("./v1/operation");
30
+ const profile_1 = require("./v1/profile");
31
+ const recall_1 = require("./v1/recall");
32
+ const revision_1 = require("./v1/revision");
33
+ const store_1 = require("./v1/store");
34
+ const trait_1 = require("./v1/trait");
35
+ const traitGroup_1 = require("./v1/traitGroup");
36
+ class V1 extends Version_1.default {
37
+ /**
38
+ * Initialize the V1 version of Memory
39
+ *
40
+ * @param domain - The Twilio (Twilio.Memory) domain
41
+ */
42
+ constructor(domain) {
43
+ super(domain, "v1");
44
+ }
45
+ /** Accessor for bulk resource */
46
+ bulk(storeId) {
47
+ return (0, bulk_1.BulkListInstance)(this)(storeId);
48
+ }
49
+ /** Implementation */
50
+ conversationSummaries(storeId, profileId, summaryId) {
51
+ const listInstance = (0, conversationSummary_1.ConversationSummaryListInstance)(this, storeId, profileId);
52
+ if (summaryId !== undefined) {
53
+ return listInstance.get(summaryId);
54
+ }
55
+ return listInstance;
56
+ }
57
+ /** Implementation */
58
+ dataMappings(storeId, dataMappingId) {
59
+ const listInstance = (0, dataMapping_1.DataMappingListInstance)(this, storeId);
60
+ if (dataMappingId !== undefined) {
61
+ return listInstance.get(dataMappingId);
62
+ }
63
+ return listInstance;
64
+ }
65
+ /** Accessor for events resource */
66
+ events(storeId, profileId) {
67
+ return (0, event_1.EventListInstance)(this, storeId, profileId);
68
+ }
69
+ /** Implementation */
70
+ identifiers(storeId, profileId, idType) {
71
+ const listInstance = (0, identifier_1.IdentifierListInstance)(this, storeId, profileId);
72
+ if (idType !== undefined) {
73
+ return listInstance.get(idType);
74
+ }
75
+ return listInstance;
76
+ }
77
+ /** Accessor for identityResolutionSettings resource */
78
+ identityResolutionSettings(storeId) {
79
+ return (0, identityResolutionSetting_1.IdentityResolutionSettingListInstance)(this)(storeId);
80
+ }
81
+ /** Implementation */
82
+ imports(storeId, importId) {
83
+ const listInstance = (0, import_1.ImportListInstance)(this, storeId);
84
+ if (importId !== undefined) {
85
+ return listInstance.get(importId);
86
+ }
87
+ return listInstance;
88
+ }
89
+ /** Accessor for lookup resource */
90
+ lookup(storeId) {
91
+ return (0, lookup_1.LookupListInstance)(this, storeId);
92
+ }
93
+ /** Implementation */
94
+ observations(storeId, profileId, observationId) {
95
+ const listInstance = (0, observation_1.ObservationListInstance)(this, storeId, profileId);
96
+ if (observationId !== undefined) {
97
+ return listInstance.get(observationId);
98
+ }
99
+ return listInstance;
100
+ }
101
+ /** Getter for operations resource */
102
+ get operations() {
103
+ this._operations = this._operations || (0, operation_1.OperationListInstance)(this);
104
+ return this._operations;
105
+ }
106
+ /** Implementation */
107
+ profiles(storeId, profileId) {
108
+ const listInstance = (0, profile_1.ProfileListInstance)(this, storeId);
109
+ if (profileId !== undefined) {
110
+ return listInstance.get(profileId);
111
+ }
112
+ return listInstance;
113
+ }
114
+ /** Accessor for recall resource */
115
+ recall(storeId, profileId) {
116
+ return (0, recall_1.RecallListInstance)(this, storeId, profileId);
117
+ }
118
+ /** Accessor for revisions resource */
119
+ revisions(storeId, profileId, observationId) {
120
+ return (0, revision_1.RevisionListInstance)(this, storeId, profileId, observationId);
121
+ }
122
+ /** Getter for stores resource */
123
+ get stores() {
124
+ this._stores = this._stores || (0, store_1.StoreListInstance)(this);
125
+ return this._stores;
126
+ }
127
+ /** Accessor for traits resource */
128
+ traits(storeId, profileId) {
129
+ return (0, trait_1.TraitListInstance)(this, storeId, profileId);
130
+ }
131
+ /** Implementation */
132
+ traitGroups(storeId, traitGroupName) {
133
+ const listInstance = (0, traitGroup_1.TraitGroupListInstance)(this, storeId);
134
+ if (traitGroupName !== undefined) {
135
+ return listInstance.get(traitGroupName);
136
+ }
137
+ return listInstance;
138
+ }
139
+ }
140
+ exports.default = V1;
@@ -0,0 +1,129 @@
1
+ import { inspect, InspectOptions } from "util";
2
+ import V1 from "../V1";
3
+ import { ApiResponse } from "../../../base/ApiResponse";
4
+ /**
5
+ * Data for creating or updating a profile, including traits.
6
+ */
7
+ export declare class ProfileData {
8
+ /**
9
+ * Multiple trait groups.
10
+ */
11
+ "traits"?: {
12
+ [key: string]: {
13
+ [key: string]: any;
14
+ };
15
+ };
16
+ constructor(payload: any);
17
+ }
18
+ export declare class UpdateProfilesBulkRequest {
19
+ "profiles"?: Array<ProfileData>;
20
+ constructor(payload: any);
21
+ }
22
+ /**
23
+ * Options to pass to update a BulkInstance
24
+ */
25
+ export interface BulkContextUpdateOptions {
26
+ /** */
27
+ updateProfilesBulkRequest: UpdateProfilesBulkRequest;
28
+ }
29
+ export interface BulkContext {
30
+ /**
31
+ * Update a BulkInstance
32
+ *
33
+ * @param params - Body for request
34
+ * @param headers - header params for request
35
+ * @param callback - Callback to handle processed record
36
+ *
37
+ * @returns Resolves to processed BulkInstance
38
+ */
39
+ update(params: UpdateProfilesBulkRequest, headers?: any, callback?: (error: Error | null, item?: BulkInstance) => any): Promise<BulkInstance>;
40
+ /**
41
+ * Update a BulkInstance and return HTTP info
42
+ *
43
+ * @param params - Body for request
44
+ * @param headers - header params for request
45
+ * @param callback - Callback to handle processed record
46
+ *
47
+ * @returns Resolves to processed BulkInstance with HTTP metadata
48
+ */
49
+ updateWithHttpInfo(params: UpdateProfilesBulkRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<BulkInstance>) => any): Promise<ApiResponse<BulkInstance>>;
50
+ /**
51
+ * Provide a user-friendly representation
52
+ */
53
+ toJSON(): any;
54
+ [inspect.custom](_depth: any, options: InspectOptions): any;
55
+ }
56
+ export interface BulkContextSolution {
57
+ storeId: string;
58
+ }
59
+ export declare class BulkContextImpl implements BulkContext {
60
+ protected _version: V1;
61
+ protected _solution: BulkContextSolution;
62
+ protected _uri: string;
63
+ constructor(_version: V1, storeId: string);
64
+ update(params: UpdateProfilesBulkRequest, headers?: any, callback?: (error: Error | null, item?: BulkInstance) => any): Promise<BulkInstance>;
65
+ updateWithHttpInfo(params: UpdateProfilesBulkRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<BulkInstance>) => any): Promise<ApiResponse<BulkInstance>>;
66
+ /**
67
+ * Provide a user-friendly representation
68
+ *
69
+ * @returns Object
70
+ */
71
+ toJSON(): BulkContextSolution;
72
+ [inspect.custom](_depth: any, options: InspectOptions): string;
73
+ }
74
+ interface BulkResource {
75
+ message: string;
76
+ }
77
+ export declare class BulkInstance {
78
+ protected _version: V1;
79
+ protected _solution: BulkContextSolution;
80
+ protected _context?: BulkContext;
81
+ constructor(_version: V1, _payload: BulkResource, storeId?: string);
82
+ message: string;
83
+ private get _proxy();
84
+ /**
85
+ * Update a BulkInstance
86
+ *
87
+ * @param params - Body for request
88
+ * @param headers - header params for request
89
+ * @param callback - Callback to handle processed record
90
+ *
91
+ * @returns Resolves to processed BulkInstance
92
+ */
93
+ update(params: UpdateProfilesBulkRequest, headers?: any, callback?: (error: Error | null, item?: BulkInstance) => any): Promise<BulkInstance>;
94
+ /**
95
+ * Update a BulkInstance and return HTTP info
96
+ *
97
+ * @param params - Body for request
98
+ * @param headers - header params for request
99
+ * @param callback - Callback to handle processed record
100
+ *
101
+ * @returns Resolves to processed BulkInstance with HTTP metadata
102
+ */
103
+ updateWithHttpInfo(params: UpdateProfilesBulkRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<BulkInstance>) => any): Promise<ApiResponse<BulkInstance>>;
104
+ /**
105
+ * Provide a user-friendly representation
106
+ *
107
+ * @returns Object
108
+ */
109
+ toJSON(): {
110
+ message: string;
111
+ };
112
+ [inspect.custom](_depth: any, options: InspectOptions): string;
113
+ }
114
+ export interface BulkSolution {
115
+ }
116
+ export interface BulkListInstance {
117
+ _version: V1;
118
+ _solution: BulkSolution;
119
+ _uri: string;
120
+ (storeId: string): BulkContext;
121
+ get(storeId: string): BulkContext;
122
+ /**
123
+ * Provide a user-friendly representation
124
+ */
125
+ toJSON(): any;
126
+ [inspect.custom](_depth: any, options: InspectOptions): any;
127
+ }
128
+ export declare function BulkListInstance(version: V1): BulkListInstance;
129
+ export {};
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio Memory API
9
+ * APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator.
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BulkInstance = exports.BulkContextImpl = exports.UpdateProfilesBulkRequest = exports.ProfileData = void 0;
17
+ exports.BulkListInstance = BulkListInstance;
18
+ const util_1 = require("util");
19
+ const deserialize = require("../../../base/deserialize");
20
+ const serialize = require("../../../base/serialize");
21
+ const utility_1 = require("../../../base/utility");
22
+ /**
23
+ * Data for creating or updating a profile, including traits.
24
+ */
25
+ class ProfileData {
26
+ constructor(payload) {
27
+ this.traits = payload["traits"];
28
+ }
29
+ }
30
+ exports.ProfileData = ProfileData;
31
+ class UpdateProfilesBulkRequest {
32
+ constructor(payload) {
33
+ this.profiles = payload["profiles"];
34
+ }
35
+ }
36
+ exports.UpdateProfilesBulkRequest = UpdateProfilesBulkRequest;
37
+ class BulkContextImpl {
38
+ constructor(_version, storeId) {
39
+ this._version = _version;
40
+ if (!(0, utility_1.isValidPathParam)(storeId)) {
41
+ throw new Error("Parameter 'storeId' is not valid.");
42
+ }
43
+ this._solution = { storeId };
44
+ this._uri = `/Stores/${storeId}/Profiles/Bulk`;
45
+ }
46
+ update(params, headers, callback) {
47
+ if (params === null || params === undefined) {
48
+ throw new Error('Required parameter "params" missing.');
49
+ }
50
+ let data = {};
51
+ data = params;
52
+ if (headers === null || headers === undefined) {
53
+ headers = {};
54
+ }
55
+ headers["Content-Type"] = "application/json";
56
+ headers["Accept"] = "application/json";
57
+ const instance = this;
58
+ let operationVersion = instance._version, operationPromise = operationVersion.update({
59
+ uri: instance._uri,
60
+ method: "put",
61
+ data,
62
+ headers,
63
+ });
64
+ operationPromise = operationPromise.then((payload) => new BulkInstance(operationVersion, payload, instance._solution.storeId));
65
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
66
+ return operationPromise;
67
+ }
68
+ updateWithHttpInfo(params, headers, callback) {
69
+ if (params === null || params === undefined) {
70
+ throw new Error('Required parameter "params" missing.');
71
+ }
72
+ let data = {};
73
+ data = params;
74
+ if (headers === null || headers === undefined) {
75
+ headers = {};
76
+ }
77
+ headers["Content-Type"] = "application/json";
78
+ headers["Accept"] = "application/json";
79
+ const instance = this;
80
+ let operationVersion = instance._version;
81
+ // CREATE, FETCH, UPDATE operations
82
+ let operationPromise = operationVersion
83
+ .updateWithResponseInfo({
84
+ uri: instance._uri,
85
+ method: "put",
86
+ data,
87
+ headers,
88
+ })
89
+ .then((response) => ({
90
+ ...response,
91
+ body: new BulkInstance(operationVersion, response.body, instance._solution.storeId),
92
+ }));
93
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
94
+ return operationPromise;
95
+ }
96
+ /**
97
+ * Provide a user-friendly representation
98
+ *
99
+ * @returns Object
100
+ */
101
+ toJSON() {
102
+ return this._solution;
103
+ }
104
+ [util_1.inspect.custom](_depth, options) {
105
+ return (0, util_1.inspect)(this.toJSON(), options);
106
+ }
107
+ }
108
+ exports.BulkContextImpl = BulkContextImpl;
109
+ class BulkInstance {
110
+ constructor(_version, _payload, storeId) {
111
+ this._version = _version;
112
+ const payload = _payload;
113
+ this.message = payload.message;
114
+ this._solution = { storeId: storeId };
115
+ }
116
+ get _proxy() {
117
+ this._context =
118
+ this._context ||
119
+ new BulkContextImpl(this._version, this._solution.storeId);
120
+ return this._context;
121
+ }
122
+ update(params, callback) {
123
+ return this._proxy.update(params, callback);
124
+ }
125
+ updateWithHttpInfo(params, callback) {
126
+ return this._proxy.updateWithHttpInfo(params, callback);
127
+ }
128
+ /**
129
+ * Provide a user-friendly representation
130
+ *
131
+ * @returns Object
132
+ */
133
+ toJSON() {
134
+ return {
135
+ message: this.message,
136
+ };
137
+ }
138
+ [util_1.inspect.custom](_depth, options) {
139
+ return (0, util_1.inspect)(this.toJSON(), options);
140
+ }
141
+ }
142
+ exports.BulkInstance = BulkInstance;
143
+ function BulkListInstance(version) {
144
+ const instance = ((storeId) => instance.get(storeId));
145
+ instance.get = function get(storeId) {
146
+ return new BulkContextImpl(version, storeId);
147
+ };
148
+ instance._version = version;
149
+ instance._solution = {};
150
+ instance._uri = ``;
151
+ instance.toJSON = function toJSON() {
152
+ return instance._solution;
153
+ };
154
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
155
+ return (0, util_1.inspect)(instance.toJSON(), options);
156
+ };
157
+ return instance;
158
+ }