@salesforce/lds-adapters-commerce-extensions 1.147.3 → 1.147.4
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.
|
@@ -73,7 +73,7 @@ function createLink(ref) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
const TTL$5 = 60000;
|
|
76
|
-
const VERSION$7 = "
|
|
76
|
+
const VERSION$7 = "851ba1c62498092f7289da5b20b692d8";
|
|
77
77
|
function validate$7(obj, path = 'ExtensionOutputRepresentation') {
|
|
78
78
|
const v_error = (() => {
|
|
79
79
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -99,21 +99,11 @@ function validate$7(obj, path = 'ExtensionOutputRepresentation') {
|
|
|
99
99
|
if (typeof obj_product !== 'string') {
|
|
100
100
|
return new TypeError('Expected "string" but received "' + typeof obj_product + '" (at "' + path_product + '")');
|
|
101
101
|
}
|
|
102
|
-
const obj_status = obj.status;
|
|
103
|
-
const path_status = path + '.status';
|
|
104
|
-
if (typeof obj_status !== 'string') {
|
|
105
|
-
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
106
|
-
}
|
|
107
102
|
const obj_type = obj.type;
|
|
108
103
|
const path_type = path + '.type';
|
|
109
104
|
if (typeof obj_type !== 'string') {
|
|
110
105
|
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
111
106
|
}
|
|
112
|
-
const obj_version = obj.version;
|
|
113
|
-
const path_version = path + '.version';
|
|
114
|
-
if (typeof obj_version !== 'number' || (typeof obj_version === 'number' && Math.floor(obj_version) !== obj_version)) {
|
|
115
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_version + '" (at "' + path_version + '")');
|
|
116
|
-
}
|
|
117
107
|
})();
|
|
118
108
|
return v_error === undefined ? null : v_error;
|
|
119
109
|
}
|
|
@@ -152,27 +142,14 @@ const select$d = function ExtensionOutputRepresentationSelect() {
|
|
|
152
142
|
name: 'product',
|
|
153
143
|
kind: 'Scalar'
|
|
154
144
|
},
|
|
155
|
-
{
|
|
156
|
-
name: 'status',
|
|
157
|
-
kind: 'Scalar'
|
|
158
|
-
},
|
|
159
145
|
{
|
|
160
146
|
name: 'type',
|
|
161
147
|
kind: 'Scalar'
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
name: 'version',
|
|
165
|
-
kind: 'Scalar'
|
|
166
148
|
}
|
|
167
149
|
]
|
|
168
150
|
};
|
|
169
151
|
};
|
|
170
152
|
function equals$7(existing, incoming) {
|
|
171
|
-
const existing_version = existing.version;
|
|
172
|
-
const incoming_version = incoming.version;
|
|
173
|
-
if (!(existing_version === incoming_version)) {
|
|
174
|
-
return false;
|
|
175
|
-
}
|
|
176
153
|
const existing_domain = existing.domain;
|
|
177
154
|
const incoming_domain = incoming.domain;
|
|
178
155
|
if (!(existing_domain === incoming_domain)) {
|
|
@@ -193,11 +170,6 @@ function equals$7(existing, incoming) {
|
|
|
193
170
|
if (!(existing_product === incoming_product)) {
|
|
194
171
|
return false;
|
|
195
172
|
}
|
|
196
|
-
const existing_status = existing.status;
|
|
197
|
-
const incoming_status = incoming.status;
|
|
198
|
-
if (!(existing_status === incoming_status)) {
|
|
199
|
-
return false;
|
|
200
|
-
}
|
|
201
173
|
const existing_type = existing.type;
|
|
202
174
|
const incoming_type = incoming.type;
|
|
203
175
|
if (!(existing_type === incoming_type)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
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, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
2
|
export declare const TTL = 60000;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "851ba1c62498092f7289da5b20b692d8";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -32,12 +32,8 @@ export interface ExtensionOutputRepresentationNormalized {
|
|
|
32
32
|
name: string;
|
|
33
33
|
/** The Salesforce family the Extension belongs to. */
|
|
34
34
|
product: string;
|
|
35
|
-
/** Where this EPN is in its SDLC. */
|
|
36
|
-
status: string;
|
|
37
35
|
/** Allowable values are Domain and Endpoint. */
|
|
38
36
|
type: string;
|
|
39
|
-
/** The version of the extension. */
|
|
40
|
-
version: number;
|
|
41
37
|
}
|
|
42
38
|
/**
|
|
43
39
|
* Output representation of one Extension.
|
|
@@ -50,7 +46,5 @@ export interface ExtensionOutputRepresentation {
|
|
|
50
46
|
epn: string;
|
|
51
47
|
name: string;
|
|
52
48
|
product: string;
|
|
53
|
-
status: string;
|
|
54
49
|
type: string;
|
|
55
|
-
version: number;
|
|
56
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-commerce-extensions",
|
|
3
|
-
"version": "1.147.
|
|
3
|
+
"version": "1.147.4",
|
|
4
4
|
"description": "APIs to manage providers for commerce extensions and which will be used for each store.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/umd/es2018/commerce-extensions.js",
|
package/sfdc/index.js
CHANGED
|
@@ -83,7 +83,7 @@ function createLink(ref) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
const TTL$5 = 60000;
|
|
86
|
-
const VERSION$7 = "
|
|
86
|
+
const VERSION$7 = "851ba1c62498092f7289da5b20b692d8";
|
|
87
87
|
function validate$7(obj, path = 'ExtensionOutputRepresentation') {
|
|
88
88
|
const v_error = (() => {
|
|
89
89
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -109,21 +109,11 @@ function validate$7(obj, path = 'ExtensionOutputRepresentation') {
|
|
|
109
109
|
if (typeof obj_product !== 'string') {
|
|
110
110
|
return new TypeError('Expected "string" but received "' + typeof obj_product + '" (at "' + path_product + '")');
|
|
111
111
|
}
|
|
112
|
-
const obj_status = obj.status;
|
|
113
|
-
const path_status = path + '.status';
|
|
114
|
-
if (typeof obj_status !== 'string') {
|
|
115
|
-
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
116
|
-
}
|
|
117
112
|
const obj_type = obj.type;
|
|
118
113
|
const path_type = path + '.type';
|
|
119
114
|
if (typeof obj_type !== 'string') {
|
|
120
115
|
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
121
116
|
}
|
|
122
|
-
const obj_version = obj.version;
|
|
123
|
-
const path_version = path + '.version';
|
|
124
|
-
if (typeof obj_version !== 'number' || (typeof obj_version === 'number' && Math.floor(obj_version) !== obj_version)) {
|
|
125
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_version + '" (at "' + path_version + '")');
|
|
126
|
-
}
|
|
127
117
|
})();
|
|
128
118
|
return v_error === undefined ? null : v_error;
|
|
129
119
|
}
|
|
@@ -162,27 +152,14 @@ const select$d = function ExtensionOutputRepresentationSelect() {
|
|
|
162
152
|
name: 'product',
|
|
163
153
|
kind: 'Scalar'
|
|
164
154
|
},
|
|
165
|
-
{
|
|
166
|
-
name: 'status',
|
|
167
|
-
kind: 'Scalar'
|
|
168
|
-
},
|
|
169
155
|
{
|
|
170
156
|
name: 'type',
|
|
171
157
|
kind: 'Scalar'
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
name: 'version',
|
|
175
|
-
kind: 'Scalar'
|
|
176
158
|
}
|
|
177
159
|
]
|
|
178
160
|
};
|
|
179
161
|
};
|
|
180
162
|
function equals$7(existing, incoming) {
|
|
181
|
-
const existing_version = existing.version;
|
|
182
|
-
const incoming_version = incoming.version;
|
|
183
|
-
if (!(existing_version === incoming_version)) {
|
|
184
|
-
return false;
|
|
185
|
-
}
|
|
186
163
|
const existing_domain = existing.domain;
|
|
187
164
|
const incoming_domain = incoming.domain;
|
|
188
165
|
if (!(existing_domain === incoming_domain)) {
|
|
@@ -203,11 +180,6 @@ function equals$7(existing, incoming) {
|
|
|
203
180
|
if (!(existing_product === incoming_product)) {
|
|
204
181
|
return false;
|
|
205
182
|
}
|
|
206
|
-
const existing_status = existing.status;
|
|
207
|
-
const incoming_status = incoming.status;
|
|
208
|
-
if (!(existing_status === incoming_status)) {
|
|
209
|
-
return false;
|
|
210
|
-
}
|
|
211
183
|
const existing_type = existing.type;
|
|
212
184
|
const incoming_type = incoming.type;
|
|
213
185
|
if (!(existing_type === incoming_type)) {
|
|
@@ -2149,4 +2121,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2149
2121
|
});
|
|
2150
2122
|
|
|
2151
2123
|
export { createMapping, deleteMapping, getExtensions, getExtensions_imperative, getMapping, getMappingNotifyChange, getMapping_imperative, getMappings, getMappings_imperative, getProviders, getProviders_imperative, notifyMappingUpdateAvailable, updateMapping };
|
|
2152
|
-
// version: 1.147.
|
|
2124
|
+
// version: 1.147.4-7830883a5
|
package/src/raml/api.raml
CHANGED
|
@@ -77,15 +77,9 @@ types:
|
|
|
77
77
|
product:
|
|
78
78
|
description: The Salesforce family the Extension belongs to.
|
|
79
79
|
type: string
|
|
80
|
-
status:
|
|
81
|
-
description: Where this EPN is in its SDLC.
|
|
82
|
-
type: string
|
|
83
80
|
type:
|
|
84
81
|
description: Allowable values are Domain and Endpoint.
|
|
85
82
|
type: string
|
|
86
|
-
version:
|
|
87
|
-
description: The version of the extension.
|
|
88
|
-
type: integer
|
|
89
83
|
MappingInputRepresentation:
|
|
90
84
|
description: Input representation for mapping.
|
|
91
85
|
type: object
|