@salesforce/lds-adapters-commerce-extensions 1.231.0 → 1.232.0

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.
@@ -371,7 +371,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
371
371
  function createResourceRequest$7(config) {
372
372
  const headers = {};
373
373
  return {
374
- baseUri: '/services/data/v59.0',
374
+ baseUri: '/services/data/v60.0',
375
375
  basePath: '/commerce/extension/extensions',
376
376
  method: 'get',
377
377
  body: null,
@@ -743,7 +743,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
743
743
  function createResourceRequest$6(config) {
744
744
  const headers = {};
745
745
  return {
746
- baseUri: '/services/data/v59.0',
746
+ baseUri: '/services/data/v60.0',
747
747
  basePath: '/commerce/extension/mappings',
748
748
  method: 'get',
749
749
  body: null,
@@ -867,7 +867,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
867
867
  function createResourceRequest$5(config) {
868
868
  const headers = {};
869
869
  return {
870
- baseUri: '/services/data/v59.0',
870
+ baseUri: '/services/data/v60.0',
871
871
  basePath: '/commerce/extension/mappings',
872
872
  method: 'post',
873
873
  body: config.body,
@@ -954,7 +954,7 @@ function evictSuccess(luvio, resourceParams) {
954
954
  function createResourceRequest$4(config) {
955
955
  const headers = {};
956
956
  return {
957
- baseUri: '/services/data/v59.0',
957
+ baseUri: '/services/data/v60.0',
958
958
  basePath: '/commerce/extension/mappings/' + config.urlParams.mappingId + '',
959
959
  method: 'delete',
960
960
  body: null,
@@ -1061,7 +1061,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
1061
1061
  function createResourceRequest$3(config) {
1062
1062
  const headers = {};
1063
1063
  return {
1064
- baseUri: '/services/data/v59.0',
1064
+ baseUri: '/services/data/v60.0',
1065
1065
  basePath: '/commerce/extension/mappings/' + config.urlParams.mappingId + '',
1066
1066
  method: 'get',
1067
1067
  body: null,
@@ -1184,7 +1184,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
1184
1184
  function createResourceRequest$2(config) {
1185
1185
  const headers = {};
1186
1186
  return {
1187
- baseUri: '/services/data/v59.0',
1187
+ baseUri: '/services/data/v60.0',
1188
1188
  basePath: '/commerce/extension/mappings/' + config.urlParams.mappingId + '',
1189
1189
  method: 'put',
1190
1190
  body: config.body,
@@ -1737,7 +1737,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
1737
1737
  function createResourceRequest$1(config) {
1738
1738
  const headers = {};
1739
1739
  return {
1740
- baseUri: '/services/data/v59.0',
1740
+ baseUri: '/services/data/v60.0',
1741
1741
  basePath: '/commerce/extension/providers',
1742
1742
  method: 'get',
1743
1743
  body: null,
@@ -1878,7 +1878,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
1878
1878
  function createResourceRequest(config) {
1879
1879
  const headers = {};
1880
1880
  return {
1881
- baseUri: '/services/data/v59.0',
1881
+ baseUri: '/services/data/v60.0',
1882
1882
  basePath: '/commerce/extension/providers/' + config.urlParams.providerId + '',
1883
1883
  method: 'get',
1884
1884
  body: null,
@@ -0,0 +1,11 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ export interface ResourceRequestConfig {
3
+ urlParams: {
4
+ providerId: string;
5
+ };
6
+ }
7
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
8
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
9
+ export declare function getResponseCacheKeys(cacheKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): void;
10
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
11
+ export default createResourceRequest;
@@ -0,0 +1,22 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, 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';
2
+ import { ProviderOutputRepresentation as types_ProviderOutputRepresentation_ProviderOutputRepresentation } from '../types/ProviderOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ providerId: string;
6
+ };
7
+ body: {
8
+ apexClass: {};
9
+ configUrl: string;
10
+ description: string;
11
+ epn: string;
12
+ iconUri: string;
13
+ isApplication: boolean;
14
+ name: string;
15
+ type: string;
16
+ };
17
+ }
18
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
19
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProviderOutputRepresentation_ProviderOutputRepresentation): void;
20
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProviderOutputRepresentation_ProviderOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, any>;
21
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
22
+ export default createResourceRequest;
@@ -0,0 +1,19 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, 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';
2
+ import { ProviderOutputRepresentation as types_ProviderOutputRepresentation_ProviderOutputRepresentation } from '../types/ProviderOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ body: {
5
+ apexClass: {};
6
+ configUrl: string;
7
+ description: string;
8
+ epn: string;
9
+ iconUri: string;
10
+ isApplication: boolean;
11
+ name: string;
12
+ type: string;
13
+ };
14
+ }
15
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
16
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProviderOutputRepresentation_ProviderOutputRepresentation): void;
17
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProviderOutputRepresentation_ProviderOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, any>;
18
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
19
+ export default createResourceRequest;
@@ -0,0 +1,31 @@
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "a5fa5586d809b037f7271b742b6dffde";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ApexClassInputRepresentation, existing: ApexClassInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ApexClassInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ApexClassInputRepresentationNormalized, incoming: ApexClassInputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ApexClassInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Input representation of a provider's apex class.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ApexClassInputRepresentationNormalized {
17
+ /** Unique identifier for the apex class. */
18
+ classId: string;
19
+ /** Name of the class containing the entry methods. */
20
+ className: string;
21
+ }
22
+ /**
23
+ * Input representation of a provider's apex class.
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ApexClassInputRepresentation {
29
+ classId: string;
30
+ className: string;
31
+ }
@@ -0,0 +1,49 @@
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "43eedd1f586bff7146ed07f21acb4e52";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ProviderInputRepresentation, existing: ProviderInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProviderInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ProviderInputRepresentationNormalized, incoming: ProviderInputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProviderInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Input representation of a Provider
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ProviderInputRepresentationNormalized {
17
+ /** Description of the apex class. */
18
+ apexClass: {};
19
+ /** The URL of the administrative application used to configure the provider. */
20
+ configUrl: string;
21
+ /** Description of the provider. */
22
+ description: string;
23
+ /** The extension this provider corresponds to. */
24
+ epn: string;
25
+ /** Representing the extension provider. */
26
+ iconUri: string;
27
+ /** If the extension provider is contained within a managed package. */
28
+ isApplication: boolean;
29
+ /** Unique name of the extension provider. */
30
+ name: string;
31
+ /** The type of extension. */
32
+ type: string;
33
+ }
34
+ /**
35
+ * Input representation of a Provider
36
+ *
37
+ * Keys:
38
+ * (none)
39
+ */
40
+ export interface ProviderInputRepresentation {
41
+ apexClass: {};
42
+ configUrl: string;
43
+ description: string;
44
+ epn: string;
45
+ iconUri: string;
46
+ isApplication: boolean;
47
+ name: string;
48
+ type: string;
49
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-commerce-extensions",
3
- "version": "1.231.0",
3
+ "version": "1.232.0",
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
@@ -381,7 +381,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
381
381
  function createResourceRequest$7(config) {
382
382
  const headers = {};
383
383
  return {
384
- baseUri: '/services/data/v59.0',
384
+ baseUri: '/services/data/v60.0',
385
385
  basePath: '/commerce/extension/extensions',
386
386
  method: 'get',
387
387
  body: null,
@@ -753,7 +753,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
753
753
  function createResourceRequest$6(config) {
754
754
  const headers = {};
755
755
  return {
756
- baseUri: '/services/data/v59.0',
756
+ baseUri: '/services/data/v60.0',
757
757
  basePath: '/commerce/extension/mappings',
758
758
  method: 'get',
759
759
  body: null,
@@ -877,7 +877,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
877
877
  function createResourceRequest$5(config) {
878
878
  const headers = {};
879
879
  return {
880
- baseUri: '/services/data/v59.0',
880
+ baseUri: '/services/data/v60.0',
881
881
  basePath: '/commerce/extension/mappings',
882
882
  method: 'post',
883
883
  body: config.body,
@@ -964,7 +964,7 @@ function evictSuccess(luvio, resourceParams) {
964
964
  function createResourceRequest$4(config) {
965
965
  const headers = {};
966
966
  return {
967
- baseUri: '/services/data/v59.0',
967
+ baseUri: '/services/data/v60.0',
968
968
  basePath: '/commerce/extension/mappings/' + config.urlParams.mappingId + '',
969
969
  method: 'delete',
970
970
  body: null,
@@ -1071,7 +1071,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
1071
1071
  function createResourceRequest$3(config) {
1072
1072
  const headers = {};
1073
1073
  return {
1074
- baseUri: '/services/data/v59.0',
1074
+ baseUri: '/services/data/v60.0',
1075
1075
  basePath: '/commerce/extension/mappings/' + config.urlParams.mappingId + '',
1076
1076
  method: 'get',
1077
1077
  body: null,
@@ -1235,7 +1235,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
1235
1235
  function createResourceRequest$2(config) {
1236
1236
  const headers = {};
1237
1237
  return {
1238
- baseUri: '/services/data/v59.0',
1238
+ baseUri: '/services/data/v60.0',
1239
1239
  basePath: '/commerce/extension/mappings/' + config.urlParams.mappingId + '',
1240
1240
  method: 'put',
1241
1241
  body: config.body,
@@ -1788,7 +1788,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
1788
1788
  function createResourceRequest$1(config) {
1789
1789
  const headers = {};
1790
1790
  return {
1791
- baseUri: '/services/data/v59.0',
1791
+ baseUri: '/services/data/v60.0',
1792
1792
  basePath: '/commerce/extension/providers',
1793
1793
  method: 'get',
1794
1794
  body: null,
@@ -1929,7 +1929,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
1929
1929
  function createResourceRequest(config) {
1930
1930
  const headers = {};
1931
1931
  return {
1932
- baseUri: '/services/data/v59.0',
1932
+ baseUri: '/services/data/v60.0',
1933
1933
  basePath: '/commerce/extension/providers/' + config.urlParams.providerId + '',
1934
1934
  method: 'get',
1935
1935
  body: null,
@@ -2144,4 +2144,4 @@ withDefaultLuvio((luvio) => {
2144
2144
  });
2145
2145
 
2146
2146
  export { createMapping, deleteMapping, getExtensions, getExtensions_imperative, getMapping, getMappingNotifyChange, getMapping_imperative, getMappings, getMappings_imperative, getProvider, getProviderNotifyChange, getProvider_imperative, getProviders, getProviders_imperative, notifyMappingUpdateAvailable, updateMapping };
2147
- // version: 1.231.0-2b4244fb5
2147
+ // version: 1.232.0-6cf0cd6c7
package/src/raml/api.raml CHANGED
@@ -6,7 +6,7 @@ version: '59.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
9
- baseUri: /services/data/v59.0
9
+ baseUri: /services/data/v60.0
10
10
  securitySchemes:
11
11
  OAuth2:
12
12
  type: OAuth 2.0
@@ -25,6 +25,16 @@ annotationTypes:
25
25
  type: string
26
26
  allowedTargets: TypeDeclaration
27
27
  types:
28
+ ApexClassInputRepresentation:
29
+ description: Input representation of a provider's apex class.
30
+ type: object
31
+ properties:
32
+ classId:
33
+ description: Unique identifier for the apex class.
34
+ type: string
35
+ className:
36
+ description: Name of the class containing the entry methods.
37
+ type: string
28
38
  ApexClassOutputRepresentation:
29
39
  description: Output representation of a provider's apex class.
30
40
  type: object
@@ -125,6 +135,35 @@ types:
125
135
  webstoreId:
126
136
  description: The Id of the webstore this mapping corresponds to.
127
137
  type: string
138
+ ProviderInputRepresentation:
139
+ description: Input representation of a Provider
140
+ type: object
141
+ properties:
142
+ apexClass:
143
+ description: Description of the apex class.
144
+ type: object
145
+ configUrl:
146
+ description: The URL of the administrative application used to configure the
147
+ provider.
148
+ type: string
149
+ description:
150
+ description: Description of the provider.
151
+ type: string
152
+ epn:
153
+ description: The extension this provider corresponds to.
154
+ type: string
155
+ iconUri:
156
+ description: Representing the extension provider.
157
+ type: string
158
+ isApplication:
159
+ description: If the extension provider is contained within a managed package.
160
+ type: boolean
161
+ name:
162
+ description: Unique name of the extension provider.
163
+ type: string
164
+ type:
165
+ description: The type of extension.
166
+ type: string
128
167
  ProviderOutputCollectionRepresentation:
129
168
  description: Output representation of a list of extension providers.
130
169
  type: object
@@ -264,7 +303,26 @@ types:
264
303
  epn:
265
304
  type: string
266
305
  required: false
306
+ post:
307
+ displayName: postExtensionProvidersCollection
308
+ description: Register a provider
309
+ responses:
310
+ '200':
311
+ description: Success
312
+ body:
313
+ application/json:
314
+ type: ProviderOutputRepresentation
315
+ body:
316
+ application/json:
317
+ type: ProviderInputRepresentation
318
+ (oas-body-name): providerInputRepresentation
267
319
  /providers/{providerId}:
320
+ delete:
321
+ displayName: deleteExtensionProvider
322
+ description: Remove a provider.
323
+ responses:
324
+ '200':
325
+ description: Success
268
326
  get:
269
327
  displayName: getProvider
270
328
  description: Get an extension provider
@@ -274,6 +332,19 @@ types:
274
332
  body:
275
333
  application/json:
276
334
  type: ProviderOutputRepresentation
335
+ patch:
336
+ displayName: patchExtensionProvider
337
+ description: Alter an existing extension provider.
338
+ responses:
339
+ '200':
340
+ description: Success
341
+ body:
342
+ application/json:
343
+ type: ProviderOutputRepresentation
344
+ body:
345
+ application/json:
346
+ type: ProviderInputRepresentation
347
+ (oas-body-name): providerInputRepresentation
277
348
  uriParameters:
278
349
  providerId:
279
350
  type: string