@salesforce/lds-adapters-revenue-place-quote 1.100.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/LICENSE.txt ADDED
@@ -0,0 +1,82 @@
1
+ Terms of Use
2
+
3
+ Copyright 2022 Salesforce, Inc. All rights reserved.
4
+
5
+ These Terms of Use govern the download, installation, and/or use of this
6
+ software provided by Salesforce, Inc. ("Salesforce") (the "Software"), were
7
+ last updated on April 15, 2022, and constitute a legally binding
8
+ agreement between you and Salesforce. If you do not agree to these Terms of
9
+ Use, do not install or use the Software.
10
+
11
+ Salesforce grants you a worldwide, non-exclusive, no-charge, royalty-free
12
+ copyright license to reproduce, prepare derivative works of, publicly
13
+ display, publicly perform, sublicense, and distribute the Software and
14
+ derivative works subject to these Terms. These Terms shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ Subject to the limited rights expressly granted hereunder, Salesforce
18
+ reserves all rights, title, and interest in and to all intellectual
19
+ property subsisting in the Software. No rights are granted to you hereunder
20
+ other than as expressly set forth herein. Users residing in countries on
21
+ the United States Office of Foreign Assets Control sanction list, or which
22
+ are otherwise subject to a US export embargo, may not use the Software.
23
+
24
+ Implementation of the Software may require development work, for which you
25
+ are responsible. The Software may contain bugs, errors and
26
+ incompatibilities and is made available on an AS IS basis without support,
27
+ updates, or service level commitments.
28
+
29
+ Salesforce reserves the right at any time to modify, suspend, or
30
+ discontinue, the Software (or any part thereof) with or without notice. You
31
+ agree that Salesforce shall not be liable to you or to any third party for
32
+ any modification, suspension, or discontinuance.
33
+
34
+ You agree to defend Salesforce against any claim, demand, suit or
35
+ proceeding made or brought against Salesforce by a third party arising out
36
+ of or accruing from (a) your use of the Software, and (b) any application
37
+ you develop with the Software that infringes any copyright, trademark,
38
+ trade secret, trade dress, patent, or other intellectual property right of
39
+ any person or defames any person or violates their rights of publicity or
40
+ privacy (each a "Claim Against Salesforce"), and will indemnify Salesforce
41
+ from any damages, attorney fees, and costs finally awarded against
42
+ Salesforce as a result of, or for any amounts paid by Salesforce under a
43
+ settlement approved by you in writing of, a Claim Against Salesforce,
44
+ provided Salesforce (x) promptly gives you written notice of the Claim
45
+ Against Salesforce, (y) gives you sole control of the defense and
46
+ settlement of the Claim Against Salesforce (except that you may not settle
47
+ any Claim Against Salesforce unless it unconditionally releases Salesforce
48
+ of all liability), and (z) gives you all reasonable assistance, at your
49
+ expense.
50
+
51
+ WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, THE SOFTWARE IS NOT
52
+ SUPPORTED AND IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
+ IMPLIED. IN NO EVENT SHALL SALESFORCE HAVE ANY LIABILITY FOR ANY DAMAGES,
54
+ INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL, INCIDENTAL,
55
+ PUNITIVE, OR CONSEQUENTIAL DAMAGES, OR DAMAGES BASED ON LOST PROFITS, DATA,
56
+ OR USE, IN CONNECTION WITH THE SOFTWARE, HOWEVER CAUSED AND WHETHER IN
57
+ CONTRACT, TORT, OR UNDER ANY OTHER THEORY OF LIABILITY, WHETHER OR NOT YOU
58
+ HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
59
+
60
+ These Terms of Use shall be governed exclusively by the internal laws of
61
+ the State of California, without regard to its conflicts of laws
62
+ rules. Each party hereby consents to the exclusive jurisdiction of the
63
+ state and federal courts located in San Francisco County, California to
64
+ adjudicate any dispute arising out of or relating to these Terms of Use and
65
+ the download, installation, and/or use of the Software. Except as expressly
66
+ stated herein, these Terms of Use constitute the entire agreement between
67
+ the parties, and supersede all prior and contemporaneous agreements,
68
+ proposals, or representations, written or oral, concerning their subject
69
+ matter. No modification, amendment, or waiver of any provision of these
70
+ Terms of Use shall be effective unless it is by an update to these Terms of
71
+ Use that Salesforce makes available, or is in writing and signed by the
72
+ party against whom the modification, amendment, or waiver is to be
73
+ asserted.
74
+
75
+ Data Privacy: Salesforce may collect, process, and store device,
76
+ system, and other information related to your use of the Software. This
77
+ information includes, but is not limited to, IP address, user metrics, and
78
+ other data ("Usage Data"). Salesforce may use Usage Data for analytics,
79
+ product development, and marketing purposes. You acknowledge that files
80
+ generated in conjunction with the Software may contain sensitive or
81
+ confidential data, and you are solely responsible for anonymizing and
82
+ protecting such data.
@@ -0,0 +1,336 @@
1
+ /**
2
+ * Copyright (c) 2022, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+
7
+ import { serializeStructuredKey, StoreKeyMap } from '@luvio/engine';
8
+
9
+ const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
+ const { keys: ObjectKeys$1, freeze: ObjectFreeze$1, create: ObjectCreate$1 } = Object;
11
+ const { isArray: ArrayIsArray$1 } = Array;
12
+ /**
13
+ * Validates an adapter config is well-formed.
14
+ * @param config The config to validate.
15
+ * @param adapter The adapter validation configuration.
16
+ * @param oneOf The keys the config must contain at least one of.
17
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
18
+ */
19
+ function validateConfig(config, adapter, oneOf) {
20
+ const { displayName } = adapter;
21
+ const { required, optional, unsupported } = adapter.parameters;
22
+ if (config === undefined ||
23
+ required.every(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
24
+ throw new TypeError(`adapter ${displayName} configuration must specify ${required.sort().join(', ')}`);
25
+ }
26
+ if (oneOf && oneOf.some(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
27
+ throw new TypeError(`adapter ${displayName} configuration must specify one of ${oneOf.sort().join(', ')}`);
28
+ }
29
+ if (unsupported !== undefined &&
30
+ unsupported.some(req => ObjectPrototypeHasOwnProperty.call(config, req))) {
31
+ throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
32
+ }
33
+ const supported = required.concat(optional);
34
+ if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
35
+ throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
36
+ }
37
+ }
38
+ function untrustedIsObject(untrusted) {
39
+ return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
40
+ }
41
+ function areRequiredParametersPresent(config, configPropertyNames) {
42
+ return configPropertyNames.parameters.required.every(req => req in config);
43
+ }
44
+ const keyPrefix = 'place-quote';
45
+
46
+ const { freeze: ObjectFreeze, keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
47
+ const { isArray: ArrayIsArray } = Array;
48
+ const { stringify: JSONStringify } = JSON;
49
+ function deepFreeze$2(value) {
50
+ // No need to freeze primitives
51
+ if (typeof value !== 'object' || value === null) {
52
+ return;
53
+ }
54
+ if (ArrayIsArray(value)) {
55
+ for (let i = 0, len = value.length; i < len; i += 1) {
56
+ deepFreeze$2(value[i]);
57
+ }
58
+ }
59
+ else {
60
+ const keys = ObjectKeys(value);
61
+ for (let i = 0, len = keys.length; i < len; i += 1) {
62
+ deepFreeze$2(value[keys[i]]);
63
+ }
64
+ }
65
+ ObjectFreeze(value);
66
+ }
67
+ function createLink(ref) {
68
+ return {
69
+ __ref: serializeStructuredKey(ref),
70
+ };
71
+ }
72
+
73
+ function validate$2(obj, path = 'PlaceQuoteInputRepresentation') {
74
+ const v_error = (() => {
75
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
76
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
77
+ }
78
+ const obj_graph = obj.graph;
79
+ const path_graph = path + '.graph';
80
+ if (typeof obj_graph !== 'object' || ArrayIsArray(obj_graph) || obj_graph === null) {
81
+ return new TypeError('Expected "object" but received "' + typeof obj_graph + '" (at "' + path_graph + '")');
82
+ }
83
+ const obj_pricingPref = obj.pricingPref;
84
+ const path_pricingPref = path + '.pricingPref';
85
+ if (typeof obj_pricingPref !== 'string') {
86
+ return new TypeError('Expected "string" but received "' + typeof obj_pricingPref + '" (at "' + path_pricingPref + '")');
87
+ }
88
+ })();
89
+ return v_error === undefined ? null : v_error;
90
+ }
91
+
92
+ function validate$1(obj, path = 'ErrorResponseRepresentation') {
93
+ const v_error = (() => {
94
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
95
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
96
+ }
97
+ const obj_code = obj.code;
98
+ const path_code = path + '.code';
99
+ if (typeof obj_code !== 'string') {
100
+ return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
101
+ }
102
+ const obj_message = obj.message;
103
+ const path_message = path + '.message';
104
+ if (typeof obj_message !== 'string') {
105
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
106
+ }
107
+ })();
108
+ return v_error === undefined ? null : v_error;
109
+ }
110
+ function deepFreeze$1(input) {
111
+ ObjectFreeze(input);
112
+ }
113
+
114
+ const TTL = 1000;
115
+ const VERSION = "22e4c1bbe677338ea9ad9559e8856dfe";
116
+ function validate(obj, path = 'PlaceQuoteOutputRepresentation') {
117
+ const v_error = (() => {
118
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
119
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
120
+ }
121
+ const obj_quoteId = obj.quoteId;
122
+ const path_quoteId = path + '.quoteId';
123
+ if (typeof obj_quoteId !== 'string') {
124
+ return new TypeError('Expected "string" but received "' + typeof obj_quoteId + '" (at "' + path_quoteId + '")');
125
+ }
126
+ const obj_requestIdentifier = obj.requestIdentifier;
127
+ const path_requestIdentifier = path + '.requestIdentifier';
128
+ if (typeof obj_requestIdentifier !== 'string') {
129
+ return new TypeError('Expected "string" but received "' + typeof obj_requestIdentifier + '" (at "' + path_requestIdentifier + '")');
130
+ }
131
+ const obj_responseError = obj.responseError;
132
+ const path_responseError = path + '.responseError';
133
+ if (!ArrayIsArray(obj_responseError)) {
134
+ return new TypeError('Expected "array" but received "' + typeof obj_responseError + '" (at "' + path_responseError + '")');
135
+ }
136
+ for (let i = 0; i < obj_responseError.length; i++) {
137
+ const obj_responseError_item = obj_responseError[i];
138
+ const path_responseError_item = path_responseError + '[' + i + ']';
139
+ const referencepath_responseError_itemValidationError = validate$1(obj_responseError_item, path_responseError_item);
140
+ if (referencepath_responseError_itemValidationError !== null) {
141
+ let message = 'Object doesn\'t match ErrorResponseRepresentation (at "' + path_responseError_item + '")\n';
142
+ message += referencepath_responseError_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
143
+ return new TypeError(message);
144
+ }
145
+ }
146
+ const obj_statusURL = obj.statusURL;
147
+ const path_statusURL = path + '.statusURL';
148
+ if (typeof obj_statusURL !== 'string') {
149
+ return new TypeError('Expected "string" but received "' + typeof obj_statusURL + '" (at "' + path_statusURL + '")');
150
+ }
151
+ const obj_success = obj.success;
152
+ const path_success = path + '.success';
153
+ if (typeof obj_success !== 'boolean') {
154
+ return new TypeError('Expected "boolean" but received "' + typeof obj_success + '" (at "' + path_success + '")');
155
+ }
156
+ })();
157
+ return v_error === undefined ? null : v_error;
158
+ }
159
+ const RepresentationType = 'PlaceQuoteOutputRepresentation';
160
+ function keyBuilder(luvio, config) {
161
+ return keyPrefix + '::' + RepresentationType + ':' + config.quoteId;
162
+ }
163
+ function keyBuilderFromType(luvio, object) {
164
+ const keyParams = {
165
+ quoteId: object.quoteId
166
+ };
167
+ return keyBuilder(luvio, keyParams);
168
+ }
169
+ function normalize(input, existing, path, luvio, store, timestamp) {
170
+ return input;
171
+ }
172
+ const select$1 = function PlaceQuoteOutputRepresentationSelect() {
173
+ return {
174
+ kind: 'Fragment',
175
+ version: VERSION,
176
+ private: [],
177
+ opaque: true
178
+ };
179
+ };
180
+ function equals(existing, incoming) {
181
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
182
+ return false;
183
+ }
184
+ return true;
185
+ }
186
+ function deepFreeze(input) {
187
+ const input_responseError = input.responseError;
188
+ for (let i = 0; i < input_responseError.length; i++) {
189
+ const input_responseError_item = input_responseError[i];
190
+ deepFreeze$1(input_responseError_item);
191
+ }
192
+ ObjectFreeze(input_responseError);
193
+ ObjectFreeze(input);
194
+ }
195
+ const ingest = function PlaceQuoteOutputRepresentationIngest(input, path, luvio, store, timestamp) {
196
+ if (process.env.NODE_ENV !== 'production') {
197
+ const validateError = validate(input);
198
+ if (validateError !== null) {
199
+ throw validateError;
200
+ }
201
+ }
202
+ const key = keyBuilderFromType(luvio, input);
203
+ const existingRecord = store.readEntry(key);
204
+ const ttlToUse = TTL;
205
+ let incomingRecord = normalize(input, store.readEntry(key), {
206
+ fullPath: key,
207
+ parent: path.parent,
208
+ propertyName: path.propertyName,
209
+ ttl: ttlToUse
210
+ });
211
+ deepFreeze(input);
212
+ if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
213
+ luvio.storePublish(key, incomingRecord);
214
+ }
215
+ {
216
+ const storeMetadataParams = {
217
+ ttl: ttlToUse,
218
+ namespace: "place-quote",
219
+ version: VERSION,
220
+ representationName: RepresentationType,
221
+ };
222
+ luvio.publishStoreMetadata(key, storeMetadataParams);
223
+ }
224
+ return createLink(key);
225
+ };
226
+ function getTypeCacheKeys(luvio, input, fullPathFactory) {
227
+ const rootKeySet = new StoreKeyMap();
228
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
229
+ const rootKey = keyBuilderFromType(luvio, input);
230
+ rootKeySet.set(rootKey, {
231
+ namespace: keyPrefix,
232
+ representationName: RepresentationType,
233
+ mergeable: false
234
+ });
235
+ return rootKeySet;
236
+ }
237
+
238
+ function select(luvio, params) {
239
+ return select$1();
240
+ }
241
+ function getResponseCacheKeys(luvio, resourceParams, response) {
242
+ return getTypeCacheKeys(luvio, response);
243
+ }
244
+ function ingestSuccess(luvio, resourceParams, response) {
245
+ const { body } = response;
246
+ const key = keyBuilderFromType(luvio, body);
247
+ luvio.storeIngest(key, ingest, body);
248
+ const snapshot = luvio.storeLookup({
249
+ recordId: key,
250
+ node: select(),
251
+ variables: {},
252
+ });
253
+ if (process.env.NODE_ENV !== 'production') {
254
+ if (snapshot.state !== 'Fulfilled') {
255
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
256
+ }
257
+ }
258
+ return snapshot;
259
+ }
260
+ function createResourceRequest(config) {
261
+ const headers = {};
262
+ return {
263
+ baseUri: '/services/data/v58.0',
264
+ basePath: '/commerce/quotes/actions/place',
265
+ method: 'post',
266
+ body: config.body,
267
+ urlParams: {},
268
+ queryParams: {},
269
+ headers,
270
+ priority: 'normal',
271
+ };
272
+ }
273
+
274
+ const updateQuote_ConfigPropertyNames = {
275
+ displayName: 'updateQuote',
276
+ parameters: {
277
+ required: ['PlaceQuoteInput'],
278
+ optional: []
279
+ }
280
+ };
281
+ function createResourceParams(config) {
282
+ const resourceParams = {
283
+ body: {
284
+ PlaceQuoteInput: config.PlaceQuoteInput
285
+ }
286
+ };
287
+ return resourceParams;
288
+ }
289
+ function typeCheckConfig(untrustedConfig) {
290
+ const config = {};
291
+ const untrustedConfig_PlaceQuoteInput = untrustedConfig.PlaceQuoteInput;
292
+ const referencePlaceQuoteInputRepresentationValidationError = validate$2(untrustedConfig_PlaceQuoteInput);
293
+ if (referencePlaceQuoteInputRepresentationValidationError === null) {
294
+ config.PlaceQuoteInput = untrustedConfig_PlaceQuoteInput;
295
+ }
296
+ return config;
297
+ }
298
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
299
+ if (!untrustedIsObject(untrustedConfig)) {
300
+ return null;
301
+ }
302
+ if (process.env.NODE_ENV !== 'production') {
303
+ validateConfig(untrustedConfig, configPropertyNames);
304
+ }
305
+ const config = typeCheckConfig(untrustedConfig);
306
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
307
+ return null;
308
+ }
309
+ return config;
310
+ }
311
+ function buildNetworkSnapshot(luvio, config, options) {
312
+ const resourceParams = createResourceParams(config);
313
+ const request = createResourceRequest(resourceParams);
314
+ return luvio.dispatchResourceRequest(request, options)
315
+ .then((response) => {
316
+ return luvio.handleSuccessResponse(() => {
317
+ const snapshot = ingestSuccess(luvio, resourceParams, response);
318
+ return luvio.storeBroadcast().then(() => snapshot);
319
+ }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
320
+ }, (response) => {
321
+ deepFreeze$2(response);
322
+ throw response;
323
+ });
324
+ }
325
+ const updateQuoteAdapterFactory = (luvio) => {
326
+ return function updateQuote(untrustedConfig) {
327
+ const config = validateAdapterConfig(untrustedConfig, updateQuote_ConfigPropertyNames);
328
+ // Invalid or incomplete config
329
+ if (config === null) {
330
+ throw new Error('Invalid config for "updateQuote"');
331
+ }
332
+ return buildNetworkSnapshot(luvio, config);
333
+ };
334
+ };
335
+
336
+ export { updateQuoteAdapterFactory };
@@ -0,0 +1,66 @@
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
2
+ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
+ declare const ObjectKeys: {
4
+ (o: object): string[];
5
+ (o: {}): string[];
6
+ }, ObjectFreeze: {
7
+ <T extends Function>(f: T): T;
8
+ <T_1 extends {
9
+ [idx: string]: object | U | null | undefined;
10
+ }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
11
+ <T_2>(o: T_2): Readonly<T_2>;
12
+ }, ObjectCreate: {
13
+ (o: object | null): any;
14
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
15
+ };
16
+ export { ObjectFreeze, ObjectCreate, ObjectKeys };
17
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
18
+ export declare const ArrayPrototypePush: (...items: any[]) => number;
19
+ export interface AdapterValidationConfig {
20
+ displayName: string;
21
+ parameters: {
22
+ required: string[];
23
+ optional: string[];
24
+ unsupported?: string[];
25
+ };
26
+ }
27
+ /**
28
+ * Validates an adapter config is well-formed.
29
+ * @param config The config to validate.
30
+ * @param adapter The adapter validation configuration.
31
+ * @param oneOf The keys the config must contain at least one of.
32
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
33
+ */
34
+ export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
35
+ export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
36
+ export type UncoercedConfiguration<Base, Options extends {
37
+ [key in keyof Base]?: any;
38
+ }> = {
39
+ [Key in keyof Base]?: Base[Key] | Options[Key];
40
+ };
41
+ export type Untrusted<Base> = Partial<Base>;
42
+ export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
43
+ export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
44
+ export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
45
+ export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
46
+ export declare const snapshotRefreshOptions: {
47
+ overrides: {
48
+ headers: {
49
+ 'Cache-Control': string;
50
+ };
51
+ };
52
+ };
53
+ /**
54
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
55
+ * This is needed because insertion order for JSON.stringify(object) affects output:
56
+ * JSON.stringify({a: 1, b: 2})
57
+ * "{"a":1,"b":2}"
58
+ * JSON.stringify({b: 2, a: 1})
59
+ * "{"b":2,"a":1}"
60
+ * @param data Data to be JSON-stringified.
61
+ * @returns JSON.stringified value with consistent ordering of keys.
62
+ */
63
+ export declare function stableJSONStringify(node: any): string | undefined;
64
+ export declare function getFetchResponseStatusText(status: number): string;
65
+ export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
66
+ export declare const keyPrefix = "place-quote";
@@ -0,0 +1,15 @@
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ import { PlaceQuoteInputRepresentation as types_PlaceQuoteInputRepresentation_PlaceQuoteInputRepresentation } from '../types/PlaceQuoteInputRepresentation';
3
+ import { ResourceRequestConfig as resources_postCommerceQuotesActionsPlace_ResourceRequestConfig } from '../resources/postCommerceQuotesActionsPlace';
4
+ import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
5
+ import { PlaceQuoteOutputRepresentation as types_PlaceQuoteOutputRepresentation_PlaceQuoteOutputRepresentation } from '../types/PlaceQuoteOutputRepresentation';
6
+ export declare const adapterName = "updateQuote";
7
+ export declare const updateQuote_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface UpdateQuoteConfig {
9
+ PlaceQuoteInput: types_PlaceQuoteInputRepresentation_PlaceQuoteInputRepresentation;
10
+ }
11
+ export declare function createResourceParams(config: UpdateQuoteConfig): resources_postCommerceQuotesActionsPlace_ResourceRequestConfig;
12
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateQuoteConfig>): adapter$45$utils_Untrusted<UpdateQuoteConfig>;
13
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UpdateQuoteConfig | null;
14
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateQuoteConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_PlaceQuoteOutputRepresentation_PlaceQuoteOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_PlaceQuoteOutputRepresentation_PlaceQuoteOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_PlaceQuoteOutputRepresentation_PlaceQuoteOutputRepresentation, any>>;
15
+ export declare const updateQuoteAdapterFactory: $64$luvio_engine_AdapterFactory<UpdateQuoteConfig, types_PlaceQuoteOutputRepresentation_PlaceQuoteOutputRepresentation>;
@@ -0,0 +1 @@
1
+ export { updateQuoteAdapterFactory } from '../adapters/updateQuote';
@@ -0,0 +1,2 @@
1
+ declare let updateQuote: any;
2
+ export { updateQuote, };
@@ -0,0 +1,13 @@
1
+ import { PlaceQuoteInputRepresentation as types_PlaceQuoteInputRepresentation_PlaceQuoteInputRepresentation } from '../types/PlaceQuoteInputRepresentation';
2
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
3
+ import { PlaceQuoteOutputRepresentation as types_PlaceQuoteOutputRepresentation_PlaceQuoteOutputRepresentation } from '../types/PlaceQuoteOutputRepresentation';
4
+ export interface ResourceRequestConfig {
5
+ body: {
6
+ PlaceQuoteInput: types_PlaceQuoteInputRepresentation_PlaceQuoteInputRepresentation;
7
+ };
8
+ }
9
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
+ export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_PlaceQuoteOutputRepresentation_PlaceQuoteOutputRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_PlaceQuoteOutputRepresentation_PlaceQuoteOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_PlaceQuoteOutputRepresentation_PlaceQuoteOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_PlaceQuoteOutputRepresentation_PlaceQuoteOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_PlaceQuoteOutputRepresentation_PlaceQuoteOutputRepresentation, any>;
12
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
13
+ export default createResourceRequest;
@@ -0,0 +1,32 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ export declare const VERSION = "b09b53fb4bc0d114197d5d7fffe6c4af";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ErrorResponseRepresentation, existing: ErrorResponseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ErrorResponseRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ErrorResponseRepresentationNormalized, incoming: ErrorResponseRepresentationNormalized): boolean;
8
+ export declare function deepFreeze(input: ErrorResponseRepresentation): void;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ErrorResponseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
+ /**
12
+ * Error response representation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ErrorResponseRepresentationNormalized {
18
+ /** Code for Error */
19
+ code: string;
20
+ /** Message stating the reason for error, if any */
21
+ message: string;
22
+ }
23
+ /**
24
+ * Error response representation
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface ErrorResponseRepresentation {
30
+ code: string;
31
+ message: string;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ export declare const VERSION = "5156b5e9455c223122d51fea6284e011";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: PlaceQuoteInputRepresentation, existing: PlaceQuoteInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PlaceQuoteInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: PlaceQuoteInputRepresentationNormalized, incoming: PlaceQuoteInputRepresentationNormalized): boolean;
8
+ export declare function deepFreeze(input: PlaceQuoteInputRepresentation): void;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PlaceQuoteInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
+ /**
12
+ * Input representation for place quote.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface PlaceQuoteInputRepresentationNormalized {
18
+ /** SObject Graph representing the quote structure for place quote */
19
+ graph: {};
20
+ /** Pricing Preference for place quote */
21
+ pricingPref: string;
22
+ }
23
+ /**
24
+ * Input representation for place quote.
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface PlaceQuoteInputRepresentation {
30
+ graph: {};
31
+ pricingPref: string;
32
+ }
@@ -0,0 +1,29 @@
1
+ import { PlaceQuoteInputRepresentation as PlaceQuoteInputRepresentation_PlaceQuoteInputRepresentation } from './PlaceQuoteInputRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const VERSION = "37f5819e43ff2bb119ab42371ea28276";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: PlaceQuoteInputWrapperRepresentation, existing: PlaceQuoteInputWrapperRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PlaceQuoteInputWrapperRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: PlaceQuoteInputWrapperRepresentationNormalized, incoming: PlaceQuoteInputWrapperRepresentationNormalized): boolean;
9
+ export declare function deepFreeze(input: PlaceQuoteInputWrapperRepresentation): void;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PlaceQuoteInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ /**
13
+ * Wrapper for place quote input representation
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface PlaceQuoteInputWrapperRepresentationNormalized {
19
+ PlaceQuoteInput: PlaceQuoteInputRepresentation_PlaceQuoteInputRepresentation;
20
+ }
21
+ /**
22
+ * Wrapper for place quote input representation
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface PlaceQuoteInputWrapperRepresentation {
28
+ PlaceQuoteInput: PlaceQuoteInputRepresentation_PlaceQuoteInputRepresentation;
29
+ }