@salesforce/lds-adapters-revenue-place-quote 1.116.0 → 1.116.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/dist/es/es2018/revenue-place-quote.js +12 -7
- package/dist/types/src/generated/types/PlaceQuoteErrorResponseRepresentation.d.ts +35 -0
- package/dist/types/src/generated/types/PlaceQuoteOutputRepresentation.d.ts +4 -4
- package/dist/umd/es2018/revenue-place-quote.js +12 -7
- package/dist/umd/es5/revenue-place-quote.js +12 -7
- package/package.json +1 -1
- package/sfdc/index.js +13 -8
- package/src/raml/api.raml +6 -3
- package/dist/types/src/generated/types/ErrorResponseRepresentation.d.ts +0 -32
|
@@ -89,21 +89,26 @@ function validate$2(obj, path = 'PlaceQuoteInputRepresentation') {
|
|
|
89
89
|
return v_error === undefined ? null : v_error;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
function validate$1(obj, path = '
|
|
92
|
+
function validate$1(obj, path = 'PlaceQuoteErrorResponseRepresentation') {
|
|
93
93
|
const v_error = (() => {
|
|
94
94
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
95
95
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
96
96
|
}
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
if (typeof
|
|
100
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
97
|
+
const obj_errorCode = obj.errorCode;
|
|
98
|
+
const path_errorCode = path + '.errorCode';
|
|
99
|
+
if (typeof obj_errorCode !== 'string') {
|
|
100
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
101
101
|
}
|
|
102
102
|
const obj_message = obj.message;
|
|
103
103
|
const path_message = path + '.message';
|
|
104
104
|
if (typeof obj_message !== 'string') {
|
|
105
105
|
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
106
106
|
}
|
|
107
|
+
const obj_referenceId = obj.referenceId;
|
|
108
|
+
const path_referenceId = path + '.referenceId';
|
|
109
|
+
if (typeof obj_referenceId !== 'string') {
|
|
110
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceId + '" (at "' + path_referenceId + '")');
|
|
111
|
+
}
|
|
107
112
|
})();
|
|
108
113
|
return v_error === undefined ? null : v_error;
|
|
109
114
|
}
|
|
@@ -112,7 +117,7 @@ function deepFreeze$1(input) {
|
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
const TTL = 1000;
|
|
115
|
-
const VERSION = "
|
|
120
|
+
const VERSION = "32a768cba447434ebb8e37e67aed1302";
|
|
116
121
|
function validate(obj, path = 'PlaceQuoteOutputRepresentation') {
|
|
117
122
|
const v_error = (() => {
|
|
118
123
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -138,7 +143,7 @@ function validate(obj, path = 'PlaceQuoteOutputRepresentation') {
|
|
|
138
143
|
const path_responseError_item = path_responseError + '[' + i + ']';
|
|
139
144
|
const referencepath_responseError_itemValidationError = validate$1(obj_responseError_item, path_responseError_item);
|
|
140
145
|
if (referencepath_responseError_itemValidationError !== null) {
|
|
141
|
-
let message = 'Object doesn\'t match
|
|
146
|
+
let message = 'Object doesn\'t match PlaceQuoteErrorResponseRepresentation (at "' + path_responseError_item + '")\n';
|
|
142
147
|
message += referencepath_responseError_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
143
148
|
return new TypeError(message);
|
|
144
149
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 = "81b80dc423701677916b6c10ff7f2695";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: PlaceQuoteErrorResponseRepresentation, existing: PlaceQuoteErrorResponseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PlaceQuoteErrorResponseRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: PlaceQuoteErrorResponseRepresentationNormalized, incoming: PlaceQuoteErrorResponseRepresentationNormalized): boolean;
|
|
8
|
+
export declare function deepFreeze(input: PlaceQuoteErrorResponseRepresentation): void;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PlaceQuoteErrorResponseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
|
+
/**
|
|
12
|
+
* Error response representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface PlaceQuoteErrorResponseRepresentationNormalized {
|
|
18
|
+
/** Code for Error */
|
|
19
|
+
errorCode: string;
|
|
20
|
+
/** Message stating the reason for error, if any */
|
|
21
|
+
message: string;
|
|
22
|
+
/** The Id of where the error lies */
|
|
23
|
+
referenceId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Error response representation
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface PlaceQuoteErrorResponseRepresentation {
|
|
32
|
+
errorCode: string;
|
|
33
|
+
message: string;
|
|
34
|
+
referenceId: string;
|
|
35
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PlaceQuoteErrorResponseRepresentation as PlaceQuoteErrorResponseRepresentation_PlaceQuoteErrorResponseRepresentation } from './PlaceQuoteErrorResponseRepresentation';
|
|
2
2
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
3
3
|
export declare const TTL = 1000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "32a768cba447434ebb8e37e67aed1302";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -31,7 +31,7 @@ export interface PlaceQuoteOutputRepresentationNormalized {
|
|
|
31
31
|
/** Unique request identifier that can be used to poll async request */
|
|
32
32
|
requestIdentifier: string;
|
|
33
33
|
/** response error */
|
|
34
|
-
responseError: Array<
|
|
34
|
+
responseError: Array<PlaceQuoteErrorResponseRepresentation_PlaceQuoteErrorResponseRepresentation>;
|
|
35
35
|
/** a StatusURL for tracking this operation */
|
|
36
36
|
statusURL: string;
|
|
37
37
|
/** success */
|
|
@@ -46,7 +46,7 @@ export interface PlaceQuoteOutputRepresentationNormalized {
|
|
|
46
46
|
export interface PlaceQuoteOutputRepresentation {
|
|
47
47
|
quoteId: string;
|
|
48
48
|
requestIdentifier: string;
|
|
49
|
-
responseError: Array<
|
|
49
|
+
responseError: Array<PlaceQuoteErrorResponseRepresentation_PlaceQuoteErrorResponseRepresentation>;
|
|
50
50
|
statusURL: string;
|
|
51
51
|
success: boolean;
|
|
52
52
|
}
|
|
@@ -93,21 +93,26 @@
|
|
|
93
93
|
return v_error === undefined ? null : v_error;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function validate$1(obj, path = '
|
|
96
|
+
function validate$1(obj, path = 'PlaceQuoteErrorResponseRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
100
100
|
}
|
|
101
|
-
const
|
|
102
|
-
const
|
|
103
|
-
if (typeof
|
|
104
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
101
|
+
const obj_errorCode = obj.errorCode;
|
|
102
|
+
const path_errorCode = path + '.errorCode';
|
|
103
|
+
if (typeof obj_errorCode !== 'string') {
|
|
104
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
105
105
|
}
|
|
106
106
|
const obj_message = obj.message;
|
|
107
107
|
const path_message = path + '.message';
|
|
108
108
|
if (typeof obj_message !== 'string') {
|
|
109
109
|
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
110
110
|
}
|
|
111
|
+
const obj_referenceId = obj.referenceId;
|
|
112
|
+
const path_referenceId = path + '.referenceId';
|
|
113
|
+
if (typeof obj_referenceId !== 'string') {
|
|
114
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceId + '" (at "' + path_referenceId + '")');
|
|
115
|
+
}
|
|
111
116
|
})();
|
|
112
117
|
return v_error === undefined ? null : v_error;
|
|
113
118
|
}
|
|
@@ -116,7 +121,7 @@
|
|
|
116
121
|
}
|
|
117
122
|
|
|
118
123
|
const TTL = 1000;
|
|
119
|
-
const VERSION = "
|
|
124
|
+
const VERSION = "32a768cba447434ebb8e37e67aed1302";
|
|
120
125
|
function validate(obj, path = 'PlaceQuoteOutputRepresentation') {
|
|
121
126
|
const v_error = (() => {
|
|
122
127
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -142,7 +147,7 @@
|
|
|
142
147
|
const path_responseError_item = path_responseError + '[' + i + ']';
|
|
143
148
|
const referencepath_responseError_itemValidationError = validate$1(obj_responseError_item, path_responseError_item);
|
|
144
149
|
if (referencepath_responseError_itemValidationError !== null) {
|
|
145
|
-
let message = 'Object doesn\'t match
|
|
150
|
+
let message = 'Object doesn\'t match PlaceQuoteErrorResponseRepresentation (at "' + path_responseError_item + '")\n';
|
|
146
151
|
message += referencepath_responseError_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
147
152
|
return new TypeError(message);
|
|
148
153
|
}
|
|
@@ -95,21 +95,26 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
function validate$1(obj, path) {
|
|
98
|
-
if (path === void 0) { path = '
|
|
98
|
+
if (path === void 0) { path = 'PlaceQuoteErrorResponseRepresentation'; }
|
|
99
99
|
var v_error = (function () {
|
|
100
100
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
101
101
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
var
|
|
105
|
-
if (typeof
|
|
106
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
103
|
+
var obj_errorCode = obj.errorCode;
|
|
104
|
+
var path_errorCode = path + '.errorCode';
|
|
105
|
+
if (typeof obj_errorCode !== 'string') {
|
|
106
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
107
107
|
}
|
|
108
108
|
var obj_message = obj.message;
|
|
109
109
|
var path_message = path + '.message';
|
|
110
110
|
if (typeof obj_message !== 'string') {
|
|
111
111
|
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
112
112
|
}
|
|
113
|
+
var obj_referenceId = obj.referenceId;
|
|
114
|
+
var path_referenceId = path + '.referenceId';
|
|
115
|
+
if (typeof obj_referenceId !== 'string') {
|
|
116
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceId + '" (at "' + path_referenceId + '")');
|
|
117
|
+
}
|
|
113
118
|
})();
|
|
114
119
|
return v_error === undefined ? null : v_error;
|
|
115
120
|
}
|
|
@@ -118,7 +123,7 @@
|
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
var TTL = 1000;
|
|
121
|
-
var VERSION = "
|
|
126
|
+
var VERSION = "32a768cba447434ebb8e37e67aed1302";
|
|
122
127
|
function validate(obj, path) {
|
|
123
128
|
if (path === void 0) { path = 'PlaceQuoteOutputRepresentation'; }
|
|
124
129
|
var v_error = (function () {
|
|
@@ -145,7 +150,7 @@
|
|
|
145
150
|
var path_responseError_item = path_responseError + '[' + i + ']';
|
|
146
151
|
var referencepath_responseError_itemValidationError = validate$1(obj_responseError_item, path_responseError_item);
|
|
147
152
|
if (referencepath_responseError_itemValidationError !== null) {
|
|
148
|
-
var message = 'Object doesn\'t match
|
|
153
|
+
var message = 'Object doesn\'t match PlaceQuoteErrorResponseRepresentation (at "' + path_responseError_item + '")\n';
|
|
149
154
|
message += referencepath_responseError_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
150
155
|
return new TypeError(message);
|
|
151
156
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-revenue-place-quote",
|
|
3
|
-
"version": "1.116.
|
|
3
|
+
"version": "1.116.2",
|
|
4
4
|
"description": "Place Quote API for partial items and price/taxation updates async",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/umd/es2018/revenue-place-quote.js",
|
package/sfdc/index.js
CHANGED
|
@@ -98,21 +98,26 @@ function validate$2(obj, path = 'PlaceQuoteInputRepresentation') {
|
|
|
98
98
|
return v_error === undefined ? null : v_error;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
function validate$1(obj, path = '
|
|
101
|
+
function validate$1(obj, path = 'PlaceQuoteErrorResponseRepresentation') {
|
|
102
102
|
const v_error = (() => {
|
|
103
103
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
104
104
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
105
105
|
}
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
if (typeof
|
|
109
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
106
|
+
const obj_errorCode = obj.errorCode;
|
|
107
|
+
const path_errorCode = path + '.errorCode';
|
|
108
|
+
if (typeof obj_errorCode !== 'string') {
|
|
109
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
110
110
|
}
|
|
111
111
|
const obj_message = obj.message;
|
|
112
112
|
const path_message = path + '.message';
|
|
113
113
|
if (typeof obj_message !== 'string') {
|
|
114
114
|
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
115
115
|
}
|
|
116
|
+
const obj_referenceId = obj.referenceId;
|
|
117
|
+
const path_referenceId = path + '.referenceId';
|
|
118
|
+
if (typeof obj_referenceId !== 'string') {
|
|
119
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceId + '" (at "' + path_referenceId + '")');
|
|
120
|
+
}
|
|
116
121
|
})();
|
|
117
122
|
return v_error === undefined ? null : v_error;
|
|
118
123
|
}
|
|
@@ -121,7 +126,7 @@ function deepFreeze$1(input) {
|
|
|
121
126
|
}
|
|
122
127
|
|
|
123
128
|
const TTL = 1000;
|
|
124
|
-
const VERSION = "
|
|
129
|
+
const VERSION = "32a768cba447434ebb8e37e67aed1302";
|
|
125
130
|
function validate(obj, path = 'PlaceQuoteOutputRepresentation') {
|
|
126
131
|
const v_error = (() => {
|
|
127
132
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -147,7 +152,7 @@ function validate(obj, path = 'PlaceQuoteOutputRepresentation') {
|
|
|
147
152
|
const path_responseError_item = path_responseError + '[' + i + ']';
|
|
148
153
|
const referencepath_responseError_itemValidationError = validate$1(obj_responseError_item, path_responseError_item);
|
|
149
154
|
if (referencepath_responseError_itemValidationError !== null) {
|
|
150
|
-
let message = 'Object doesn\'t match
|
|
155
|
+
let message = 'Object doesn\'t match PlaceQuoteErrorResponseRepresentation (at "' + path_responseError_item + '")\n';
|
|
151
156
|
message += referencepath_responseError_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
152
157
|
return new TypeError(message);
|
|
153
158
|
}
|
|
@@ -360,4 +365,4 @@ withDefaultLuvio((luvio) => {
|
|
|
360
365
|
});
|
|
361
366
|
|
|
362
367
|
export { updateQuote };
|
|
363
|
-
// version: 1.116.
|
|
368
|
+
// version: 1.116.2-99b24fd83
|
package/src/raml/api.raml
CHANGED
|
@@ -60,20 +60,23 @@ types:
|
|
|
60
60
|
description: response error
|
|
61
61
|
type: array
|
|
62
62
|
items:
|
|
63
|
-
type:
|
|
63
|
+
type: PlaceQuoteErrorResponseRepresentation
|
|
64
64
|
statusURL:
|
|
65
65
|
description: a StatusURL for tracking this operation
|
|
66
66
|
type: string
|
|
67
67
|
success:
|
|
68
68
|
description: success
|
|
69
69
|
type: boolean
|
|
70
|
-
|
|
70
|
+
PlaceQuoteErrorResponseRepresentation:
|
|
71
71
|
description: Error response representation
|
|
72
72
|
type: object
|
|
73
73
|
properties:
|
|
74
|
-
|
|
74
|
+
errorCode:
|
|
75
75
|
description: Code for Error
|
|
76
76
|
type: string
|
|
77
|
+
referenceId:
|
|
78
|
+
description: The Id of where the error lies
|
|
79
|
+
type: string
|
|
77
80
|
message:
|
|
78
81
|
description: Message stating the reason for error, if any
|
|
79
82
|
type: string
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
}
|