@salesforce/lds-adapters-commerce-extensions 1.227.1 → 1.228.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.
@@ -881,7 +881,7 @@ function createResourceRequest$5(config) {
881
881
  const adapterName$5 = 'createMapping';
882
882
  const createMapping_ConfigPropertyMetadata = [
883
883
  generateParamConfigMetadata('epn', true, 2 /* Body */, 0 /* String */),
884
- generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
884
+ generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
885
885
  generateParamConfigMetadata('providerName', true, 2 /* Body */, 0 /* String */),
886
886
  generateParamConfigMetadata('webstoreId', true, 2 /* Body */, 0 /* String */),
887
887
  ];
@@ -1199,7 +1199,7 @@ const adapterName$2 = 'updateMapping';
1199
1199
  const updateMapping_ConfigPropertyMetadata = [
1200
1200
  generateParamConfigMetadata('mappingId', true, 0 /* UrlParameter */, 0 /* String */),
1201
1201
  generateParamConfigMetadata('epn', true, 2 /* Body */, 0 /* String */),
1202
- generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
1202
+ generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
1203
1203
  generateParamConfigMetadata('providerName', true, 2 /* Body */, 0 /* String */),
1204
1204
  generateParamConfigMetadata('webstoreId', true, 2 /* Body */, 0 /* String */),
1205
1205
  ];
@@ -7,7 +7,7 @@ export declare const createMapping_ConfigPropertyMetadata: $64$luvio_engine_Adap
7
7
  export declare const createMapping_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface CreateMappingConfig {
9
9
  epn: string;
10
- id: string;
10
+ id?: string;
11
11
  providerName: string;
12
12
  webstoreId: string;
13
13
  }
@@ -8,7 +8,7 @@ export declare const updateMapping_ConfigPropertyNames: adapter$45$utils_Adapter
8
8
  export interface UpdateMappingConfig {
9
9
  mappingId: string;
10
10
  epn: string;
11
- id: string;
11
+ id?: string;
12
12
  providerName: string;
13
13
  webstoreId: string;
14
14
  }
@@ -3,7 +3,7 @@ import { MappingOutputRepresentation as types_MappingOutputRepresentation_Mappin
3
3
  export interface ResourceRequestConfig {
4
4
  body: {
5
5
  epn: string;
6
- id: string;
6
+ id?: string;
7
7
  providerName: string;
8
8
  webstoreId: string;
9
9
  };
@@ -6,7 +6,7 @@ export interface ResourceRequestConfig {
6
6
  };
7
7
  body: {
8
8
  epn: string;
9
- id: string;
9
+ id?: string;
10
10
  providerName: string;
11
11
  webstoreId: string;
12
12
  };
@@ -1,6 +1,6 @@
1
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
2
  export declare const TTL = 60000;
3
- export declare const VERSION = "3681813e3cc3e527c19b9c433118cfa2";
3
+ export declare const VERSION = "4a8c0a159a66b5d5ed44fde4dee698a8";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: MappingInputRepresentation, existing: MappingInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MappingInputRepresentationNormalized;
@@ -18,7 +18,7 @@ export interface MappingInputRepresentationNormalized {
18
18
  /** The extension this provider corresponds to. */
19
19
  epn: string;
20
20
  /** The unique mapping identifier */
21
- id: string;
21
+ id?: string;
22
22
  /** Unique name of the extension provider. */
23
23
  providerName: string;
24
24
  /** The Id of the webstore this mapping corresponds to. */
@@ -32,7 +32,7 @@ export interface MappingInputRepresentationNormalized {
32
32
  */
33
33
  export interface MappingInputRepresentation {
34
34
  epn: string;
35
- id: string;
35
+ id?: string;
36
36
  providerName: string;
37
37
  webstoreId: string;
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-commerce-extensions",
3
- "version": "1.227.1",
3
+ "version": "1.228.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
@@ -891,7 +891,7 @@ function createResourceRequest$5(config) {
891
891
  const adapterName$5 = 'createMapping';
892
892
  const createMapping_ConfigPropertyMetadata = [
893
893
  generateParamConfigMetadata('epn', true, 2 /* Body */, 0 /* String */),
894
- generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
894
+ generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
895
895
  generateParamConfigMetadata('providerName', true, 2 /* Body */, 0 /* String */),
896
896
  generateParamConfigMetadata('webstoreId', true, 2 /* Body */, 0 /* String */),
897
897
  ];
@@ -1250,7 +1250,7 @@ const adapterName$2 = 'updateMapping';
1250
1250
  const updateMapping_ConfigPropertyMetadata = [
1251
1251
  generateParamConfigMetadata('mappingId', true, 0 /* UrlParameter */, 0 /* String */),
1252
1252
  generateParamConfigMetadata('epn', true, 2 /* Body */, 0 /* String */),
1253
- generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
1253
+ generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
1254
1254
  generateParamConfigMetadata('providerName', true, 2 /* Body */, 0 /* String */),
1255
1255
  generateParamConfigMetadata('webstoreId', true, 2 /* Body */, 0 /* String */),
1256
1256
  ];
@@ -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.227.1-a3108f583
2147
+ // version: 1.228.0-946298e9a
package/src/raml/api.raml CHANGED
@@ -87,7 +87,8 @@ types:
87
87
  epn:
88
88
  description: The extension this provider corresponds to.
89
89
  type: string
90
- id:
90
+ # handrolled: id needs to be optional
91
+ id?:
91
92
  description: The unique mapping identifier
92
93
  type: string
93
94
  providerName: