@salesforce/lds-adapters-industries-manufacturing 1.284.0 → 1.285.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.
@@ -136,32 +136,32 @@ function createLink(ref) {
136
136
  }
137
137
 
138
138
  const TTL = 30000;
139
- const VERSION = "f59e2a1bb756e1ea356a58ac8e865bf2";
140
- function validate(obj, path = 'CreateSupplierClaimsOutputRepresentation') {
139
+ const VERSION = "72c8ca94bc170f29a19d975278cf2333";
140
+ function validate(obj, path = 'WarrantyToSupplierClaimsRepresentation') {
141
141
  const v_error = (() => {
142
142
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
143
143
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
144
144
  }
145
- const obj_supplierClaimIds = obj.supplierClaimIds;
146
- const path_supplierClaimIds = path + '.supplierClaimIds';
147
- if (!ArrayIsArray(obj_supplierClaimIds)) {
148
- return new TypeError('Expected "array" but received "' + typeof obj_supplierClaimIds + '" (at "' + path_supplierClaimIds + '")');
145
+ const obj_supplierClaimsIds = obj.supplierClaimsIds;
146
+ const path_supplierClaimsIds = path + '.supplierClaimsIds';
147
+ if (!ArrayIsArray(obj_supplierClaimsIds)) {
148
+ return new TypeError('Expected "array" but received "' + typeof obj_supplierClaimsIds + '" (at "' + path_supplierClaimsIds + '")');
149
149
  }
150
- for (let i = 0; i < obj_supplierClaimIds.length; i++) {
151
- const obj_supplierClaimIds_item = obj_supplierClaimIds[i];
152
- const path_supplierClaimIds_item = path_supplierClaimIds + '[' + i + ']';
153
- if (typeof obj_supplierClaimIds_item !== 'string') {
154
- return new TypeError('Expected "string" but received "' + typeof obj_supplierClaimIds_item + '" (at "' + path_supplierClaimIds_item + '")');
150
+ for (let i = 0; i < obj_supplierClaimsIds.length; i++) {
151
+ const obj_supplierClaimsIds_item = obj_supplierClaimsIds[i];
152
+ const path_supplierClaimsIds_item = path_supplierClaimsIds + '[' + i + ']';
153
+ if (typeof obj_supplierClaimsIds_item !== 'string') {
154
+ return new TypeError('Expected "string" but received "' + typeof obj_supplierClaimsIds_item + '" (at "' + path_supplierClaimsIds_item + '")');
155
155
  }
156
156
  }
157
157
  })();
158
158
  return v_error === undefined ? null : v_error;
159
159
  }
160
- const RepresentationType = 'CreateSupplierClaimsOutputRepresentation';
160
+ const RepresentationType = 'WarrantyToSupplierClaimsRepresentation';
161
161
  function normalize(input, existing, path, luvio, store, timestamp) {
162
162
  return input;
163
163
  }
164
- const select$1 = function CreateSupplierClaimsOutputRepresentationSelect() {
164
+ const select$1 = function WarrantyToSupplierClaimsRepresentationSelect() {
165
165
  return {
166
166
  kind: 'Fragment',
167
167
  version: VERSION,
@@ -175,7 +175,7 @@ function equals(existing, incoming) {
175
175
  }
176
176
  return true;
177
177
  }
178
- const ingest = function CreateSupplierClaimsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
178
+ const ingest = function WarrantyToSupplierClaimsRepresentationIngest(input, path, luvio, store, timestamp) {
179
179
  if (process.env.NODE_ENV !== 'production') {
180
180
  const validateError = validate(input);
181
181
  if (validateError !== null) {
@@ -201,7 +201,7 @@ function select(luvio, params) {
201
201
  return select$1();
202
202
  }
203
203
  function keyBuilder$1(luvio, params) {
204
- return keyPrefix + '::CreateSupplierClaimsOutputRepresentation:(' + 'claimsIds:' + params.body.claimsIds + '::' + 'contextDefinition:' + params.body.contextDefinition + '::' + 'contextMapping:' + params.body.contextMapping + '::' + 'conversionType:' + params.body.conversionType + '::' + '[' + params.body.productSupplierContractIds.map(element => stableJSONStringify(element)).join(',') + ']' + ')';
204
+ return keyPrefix + '::WarrantyToSupplierClaimsRepresentation:(' + 'claimIds:' + params.body.claimIds + '::' + 'contextDefinition:' + params.body.contextDefinition + '::' + 'contextMapping:' + params.body.contextMapping + '::' + 'conversionType:' + params.body.conversionType + '::' + '[' + params.body.supplierRecoveryProducts.map(element => stableJSONStringify(element)).join(',') + ']' + ')';
205
205
  }
206
206
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
207
207
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -239,7 +239,7 @@ function createResourceRequest(config) {
239
239
  const headers = {};
240
240
  return {
241
241
  baseUri: '/services/data/v61.0',
242
- basePath: '/connect/supplier-claim',
242
+ basePath: '/connect/warranty/supplier-claim',
243
243
  method: 'post',
244
244
  body: config.body,
245
245
  urlParams: {},
@@ -251,11 +251,11 @@ function createResourceRequest(config) {
251
251
 
252
252
  const adapterName = 'createSupplierClaims';
253
253
  const createSupplierClaims_ConfigPropertyMetadata = [
254
- generateParamConfigMetadata('claimsIds', true, 2 /* Body */, 0 /* String */, true),
254
+ generateParamConfigMetadata('claimIds', true, 2 /* Body */, 0 /* String */, true),
255
255
  generateParamConfigMetadata('contextDefinition', true, 2 /* Body */, 0 /* String */),
256
256
  generateParamConfigMetadata('contextMapping', true, 2 /* Body */, 0 /* String */),
257
257
  generateParamConfigMetadata('conversionType', true, 2 /* Body */, 0 /* String */),
258
- generateParamConfigMetadata('productSupplierContractIds', true, 2 /* Body */, 4 /* Unsupported */, true),
258
+ generateParamConfigMetadata('supplierRecoveryProducts', true, 2 /* Body */, 4 /* Unsupported */, true),
259
259
  ];
260
260
  const createSupplierClaims_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createSupplierClaims_ConfigPropertyMetadata);
261
261
  const createResourceParams = /*#__PURE__*/ createResourceParams$1(createSupplierClaims_ConfigPropertyMetadata);
@@ -266,19 +266,19 @@ function keyBuilder(luvio, config) {
266
266
  function typeCheckConfig(untrustedConfig) {
267
267
  const config = {};
268
268
  typeCheckConfig$1(untrustedConfig, config, createSupplierClaims_ConfigPropertyMetadata);
269
- const untrustedConfig_productSupplierContractIds = untrustedConfig.productSupplierContractIds;
270
- if (ArrayIsArray$1(untrustedConfig_productSupplierContractIds)) {
271
- const untrustedConfig_productSupplierContractIds_array = [];
272
- for (let i = 0, arrayLength = untrustedConfig_productSupplierContractIds.length; i < arrayLength; i++) {
273
- const untrustedConfig_productSupplierContractIds_item = untrustedConfig_productSupplierContractIds[i];
274
- if (untrustedIsObject(untrustedConfig_productSupplierContractIds_item)) {
275
- const untrustedConfig_productSupplierContractIds_item_object = {};
276
- if (untrustedConfig_productSupplierContractIds_item_object !== undefined && Object.keys(untrustedConfig_productSupplierContractIds_item_object).length >= 0) {
277
- untrustedConfig_productSupplierContractIds_array.push(untrustedConfig_productSupplierContractIds_item_object);
269
+ const untrustedConfig_supplierRecoveryProducts = untrustedConfig.supplierRecoveryProducts;
270
+ if (ArrayIsArray$1(untrustedConfig_supplierRecoveryProducts)) {
271
+ const untrustedConfig_supplierRecoveryProducts_array = [];
272
+ for (let i = 0, arrayLength = untrustedConfig_supplierRecoveryProducts.length; i < arrayLength; i++) {
273
+ const untrustedConfig_supplierRecoveryProducts_item = untrustedConfig_supplierRecoveryProducts[i];
274
+ if (untrustedIsObject(untrustedConfig_supplierRecoveryProducts_item)) {
275
+ const untrustedConfig_supplierRecoveryProducts_item_object = {};
276
+ if (untrustedConfig_supplierRecoveryProducts_item_object !== undefined && Object.keys(untrustedConfig_supplierRecoveryProducts_item_object).length >= 0) {
277
+ untrustedConfig_supplierRecoveryProducts_array.push(untrustedConfig_supplierRecoveryProducts_item_object);
278
278
  }
279
279
  }
280
280
  }
281
- config.productSupplierContractIds = untrustedConfig_productSupplierContractIds_array;
281
+ config.supplierRecoveryProducts = untrustedConfig_supplierRecoveryProducts_array;
282
282
  }
283
283
  return config;
284
284
  }
@@ -1,31 +1,31 @@
1
1
  import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
- import { ResourceRequestConfig as resources_postConnectSupplierClaim_ResourceRequestConfig } from '../resources/postConnectSupplierClaim';
4
- import { CreateSupplierClaimsOutputRepresentation as types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation } from '../types/CreateSupplierClaimsOutputRepresentation';
3
+ import { ResourceRequestConfig as resources_postConnectWarrantySupplierClaim_ResourceRequestConfig } from '../resources/postConnectWarrantySupplierClaim';
4
+ import { WarrantyToSupplierClaimsRepresentation as types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation } from '../types/WarrantyToSupplierClaimsRepresentation';
5
5
  export declare const adapterName = "createSupplierClaims";
6
6
  export declare const createSupplierClaims_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
7
  export declare const createSupplierClaims_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface CreateSupplierClaimsConfig {
9
- claimsIds: Array<string>;
9
+ claimIds: Array<string>;
10
10
  contextDefinition: string;
11
11
  contextMapping: string;
12
12
  conversionType: string;
13
- productSupplierContractIds: Array<{}>;
13
+ supplierRecoveryProducts: Array<{}>;
14
14
  }
15
- export declare const createResourceParams: (config: CreateSupplierClaimsConfig) => resources_postConnectSupplierClaim_ResourceRequestConfig;
15
+ export declare const createResourceParams: (config: CreateSupplierClaimsConfig) => resources_postConnectWarrantySupplierClaim_ResourceRequestConfig;
16
16
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: CreateSupplierClaimsConfig): string;
17
17
  export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: CreateSupplierClaimsConfig): $64$luvio_engine_NormalizedKeyMetadata;
18
18
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateSupplierClaimsConfig>): adapter$45$utils_Untrusted<CreateSupplierClaimsConfig>;
19
19
  export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateSupplierClaimsConfig | null;
20
20
  export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: CreateSupplierClaimsConfig): $64$luvio_engine_Fragment;
21
- export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateSupplierClaimsConfig): $64$luvio_engine_Snapshot<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation, any>;
22
- export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: CreateSupplierClaimsConfig, resourceParams: resources_postConnectSupplierClaim_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation, any>>;
23
- export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: CreateSupplierClaimsConfig, resourceParams: resources_postConnectSupplierClaim_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
24
- export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateSupplierClaimsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation, any>>;
21
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateSupplierClaimsConfig): $64$luvio_engine_Snapshot<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation, any>;
22
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: CreateSupplierClaimsConfig, resourceParams: resources_postConnectWarrantySupplierClaim_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation, any>>;
23
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: CreateSupplierClaimsConfig, resourceParams: resources_postConnectWarrantySupplierClaim_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
24
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateSupplierClaimsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation, any>>;
25
25
  export type BuildSnapshotContext = {
26
26
  luvio: $64$luvio_engine_Luvio;
27
27
  config: CreateSupplierClaimsConfig;
28
28
  };
29
- export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation, any>>;
30
- export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation>): $64$luvio_engine_Snapshot<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation, any>;
31
- export declare const createSupplierClaimsAdapterFactory: $64$luvio_engine_AdapterFactory<CreateSupplierClaimsConfig, types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation>;
29
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation, any>>;
30
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation>): $64$luvio_engine_Snapshot<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation, any>;
31
+ export declare const createSupplierClaimsAdapterFactory: $64$luvio_engine_AdapterFactory<CreateSupplierClaimsConfig, types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation>;
@@ -1,19 +1,19 @@
1
1
  import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
- import { CreateSupplierClaimsOutputRepresentation as types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation } from '../types/CreateSupplierClaimsOutputRepresentation';
2
+ import { WarrantyToSupplierClaimsRepresentation as types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation } from '../types/WarrantyToSupplierClaimsRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  body: {
5
- claimsIds: Array<string>;
5
+ claimIds: Array<string>;
6
6
  contextDefinition: string;
7
7
  contextMapping: string;
8
8
  conversionType: string;
9
- productSupplierContractIds: Array<{}>;
9
+ supplierRecoveryProducts: Array<{}>;
10
10
  };
11
11
  }
12
12
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
13
13
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
14
14
  export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
- export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation): void;
16
- export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation, any>;
17
- export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CreateSupplierClaimsOutputRepresentation_CreateSupplierClaimsOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
15
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation): void;
16
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation, any>;
17
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_WarrantyToSupplierClaimsRepresentation_WarrantyToSupplierClaimsRepresentation>): $64$luvio_engine_ErrorSnapshot;
18
18
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
19
19
  export default createResourceRequest;
@@ -0,0 +1,40 @@
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 = "229bc558fdddfc9683b57894743fc129";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: WarrantyToSupplierClaimsInputRepresentation, existing: WarrantyToSupplierClaimsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): WarrantyToSupplierClaimsInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: WarrantyToSupplierClaimsInputRepresentationNormalized, incoming: WarrantyToSupplierClaimsInputRepresentationNormalized): 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: WarrantyToSupplierClaimsInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Input representation to create supplier recovery claims from warranty claims.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface WarrantyToSupplierClaimsInputRepresentationNormalized {
17
+ /** The IDs of the claim records of the claim type Warranty Claim. */
18
+ claimIds: Array<string>;
19
+ /** The developer name of the context definition that contains the structure of a warranty claim. */
20
+ contextDefinition: string;
21
+ /** The name of the context mapping associated with the context definition. */
22
+ contextMapping: string;
23
+ /** The type of conversion. */
24
+ conversionType: string;
25
+ /** The products associated with the supplier recovery claim. */
26
+ supplierRecoveryProducts: Array<{}>;
27
+ }
28
+ /**
29
+ * Input representation to create supplier recovery claims from warranty claims.
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface WarrantyToSupplierClaimsInputRepresentation {
35
+ claimIds: Array<string>;
36
+ contextDefinition: string;
37
+ contextMapping: string;
38
+ conversionType: string;
39
+ supplierRecoveryProducts: Array<{}>;
40
+ }
@@ -0,0 +1,29 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, 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 TTL = 30000;
3
+ export declare const VERSION = "72c8ca94bc170f29a19d975278cf2333";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: WarrantyToSupplierClaimsRepresentation, existing: WarrantyToSupplierClaimsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): WarrantyToSupplierClaimsRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: WarrantyToSupplierClaimsRepresentationNormalized, incoming: WarrantyToSupplierClaimsRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: WarrantyToSupplierClaimsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Output representation with the supplier recovery claims created from warranty claims.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface WarrantyToSupplierClaimsRepresentationNormalized {
18
+ /** The IDs of the claim records of the claim type Supplier Recovery Claim. */
19
+ supplierClaimsIds: Array<string>;
20
+ }
21
+ /**
22
+ * Output representation with the supplier recovery claims created from warranty claims.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface WarrantyToSupplierClaimsRepresentation {
28
+ supplierClaimsIds: Array<string>;
29
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-manufacturing",
3
- "version": "1.284.0",
3
+ "version": "1.285.0",
4
4
  "description": "Manufacturing Connect API family",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/industries-manufacturing.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.284.0"
43
+ "@salesforce/lds-bindings": "^1.285.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.284.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.285.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -146,32 +146,32 @@ function createLink(ref) {
146
146
  }
147
147
 
148
148
  const TTL = 30000;
149
- const VERSION = "f59e2a1bb756e1ea356a58ac8e865bf2";
150
- function validate(obj, path = 'CreateSupplierClaimsOutputRepresentation') {
149
+ const VERSION = "72c8ca94bc170f29a19d975278cf2333";
150
+ function validate(obj, path = 'WarrantyToSupplierClaimsRepresentation') {
151
151
  const v_error = (() => {
152
152
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
153
153
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
154
154
  }
155
- const obj_supplierClaimIds = obj.supplierClaimIds;
156
- const path_supplierClaimIds = path + '.supplierClaimIds';
157
- if (!ArrayIsArray(obj_supplierClaimIds)) {
158
- return new TypeError('Expected "array" but received "' + typeof obj_supplierClaimIds + '" (at "' + path_supplierClaimIds + '")');
155
+ const obj_supplierClaimsIds = obj.supplierClaimsIds;
156
+ const path_supplierClaimsIds = path + '.supplierClaimsIds';
157
+ if (!ArrayIsArray(obj_supplierClaimsIds)) {
158
+ return new TypeError('Expected "array" but received "' + typeof obj_supplierClaimsIds + '" (at "' + path_supplierClaimsIds + '")');
159
159
  }
160
- for (let i = 0; i < obj_supplierClaimIds.length; i++) {
161
- const obj_supplierClaimIds_item = obj_supplierClaimIds[i];
162
- const path_supplierClaimIds_item = path_supplierClaimIds + '[' + i + ']';
163
- if (typeof obj_supplierClaimIds_item !== 'string') {
164
- return new TypeError('Expected "string" but received "' + typeof obj_supplierClaimIds_item + '" (at "' + path_supplierClaimIds_item + '")');
160
+ for (let i = 0; i < obj_supplierClaimsIds.length; i++) {
161
+ const obj_supplierClaimsIds_item = obj_supplierClaimsIds[i];
162
+ const path_supplierClaimsIds_item = path_supplierClaimsIds + '[' + i + ']';
163
+ if (typeof obj_supplierClaimsIds_item !== 'string') {
164
+ return new TypeError('Expected "string" but received "' + typeof obj_supplierClaimsIds_item + '" (at "' + path_supplierClaimsIds_item + '")');
165
165
  }
166
166
  }
167
167
  })();
168
168
  return v_error === undefined ? null : v_error;
169
169
  }
170
- const RepresentationType = 'CreateSupplierClaimsOutputRepresentation';
170
+ const RepresentationType = 'WarrantyToSupplierClaimsRepresentation';
171
171
  function normalize(input, existing, path, luvio, store, timestamp) {
172
172
  return input;
173
173
  }
174
- const select$1 = function CreateSupplierClaimsOutputRepresentationSelect() {
174
+ const select$1 = function WarrantyToSupplierClaimsRepresentationSelect() {
175
175
  return {
176
176
  kind: 'Fragment',
177
177
  version: VERSION,
@@ -185,7 +185,7 @@ function equals(existing, incoming) {
185
185
  }
186
186
  return true;
187
187
  }
188
- const ingest = function CreateSupplierClaimsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
188
+ const ingest = function WarrantyToSupplierClaimsRepresentationIngest(input, path, luvio, store, timestamp) {
189
189
  if (process.env.NODE_ENV !== 'production') {
190
190
  const validateError = validate(input);
191
191
  if (validateError !== null) {
@@ -211,7 +211,7 @@ function select(luvio, params) {
211
211
  return select$1();
212
212
  }
213
213
  function keyBuilder$1(luvio, params) {
214
- return keyPrefix + '::CreateSupplierClaimsOutputRepresentation:(' + 'claimsIds:' + params.body.claimsIds + '::' + 'contextDefinition:' + params.body.contextDefinition + '::' + 'contextMapping:' + params.body.contextMapping + '::' + 'conversionType:' + params.body.conversionType + '::' + '[' + params.body.productSupplierContractIds.map(element => stableJSONStringify(element)).join(',') + ']' + ')';
214
+ return keyPrefix + '::WarrantyToSupplierClaimsRepresentation:(' + 'claimIds:' + params.body.claimIds + '::' + 'contextDefinition:' + params.body.contextDefinition + '::' + 'contextMapping:' + params.body.contextMapping + '::' + 'conversionType:' + params.body.conversionType + '::' + '[' + params.body.supplierRecoveryProducts.map(element => stableJSONStringify(element)).join(',') + ']' + ')';
215
215
  }
216
216
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
217
217
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -249,7 +249,7 @@ function createResourceRequest(config) {
249
249
  const headers = {};
250
250
  return {
251
251
  baseUri: '/services/data/v61.0',
252
- basePath: '/connect/supplier-claim',
252
+ basePath: '/connect/warranty/supplier-claim',
253
253
  method: 'post',
254
254
  body: config.body,
255
255
  urlParams: {},
@@ -261,11 +261,11 @@ function createResourceRequest(config) {
261
261
 
262
262
  const adapterName = 'createSupplierClaims';
263
263
  const createSupplierClaims_ConfigPropertyMetadata = [
264
- generateParamConfigMetadata('claimsIds', true, 2 /* Body */, 0 /* String */, true),
264
+ generateParamConfigMetadata('claimIds', true, 2 /* Body */, 0 /* String */, true),
265
265
  generateParamConfigMetadata('contextDefinition', true, 2 /* Body */, 0 /* String */),
266
266
  generateParamConfigMetadata('contextMapping', true, 2 /* Body */, 0 /* String */),
267
267
  generateParamConfigMetadata('conversionType', true, 2 /* Body */, 0 /* String */),
268
- generateParamConfigMetadata('productSupplierContractIds', true, 2 /* Body */, 4 /* Unsupported */, true),
268
+ generateParamConfigMetadata('supplierRecoveryProducts', true, 2 /* Body */, 4 /* Unsupported */, true),
269
269
  ];
270
270
  const createSupplierClaims_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createSupplierClaims_ConfigPropertyMetadata);
271
271
  const createResourceParams = /*#__PURE__*/ createResourceParams$1(createSupplierClaims_ConfigPropertyMetadata);
@@ -276,19 +276,19 @@ function keyBuilder(luvio, config) {
276
276
  function typeCheckConfig(untrustedConfig) {
277
277
  const config = {};
278
278
  typeCheckConfig$1(untrustedConfig, config, createSupplierClaims_ConfigPropertyMetadata);
279
- const untrustedConfig_productSupplierContractIds = untrustedConfig.productSupplierContractIds;
280
- if (ArrayIsArray$1(untrustedConfig_productSupplierContractIds)) {
281
- const untrustedConfig_productSupplierContractIds_array = [];
282
- for (let i = 0, arrayLength = untrustedConfig_productSupplierContractIds.length; i < arrayLength; i++) {
283
- const untrustedConfig_productSupplierContractIds_item = untrustedConfig_productSupplierContractIds[i];
284
- if (untrustedIsObject(untrustedConfig_productSupplierContractIds_item)) {
285
- const untrustedConfig_productSupplierContractIds_item_object = {};
286
- if (untrustedConfig_productSupplierContractIds_item_object !== undefined && Object.keys(untrustedConfig_productSupplierContractIds_item_object).length >= 0) {
287
- untrustedConfig_productSupplierContractIds_array.push(untrustedConfig_productSupplierContractIds_item_object);
279
+ const untrustedConfig_supplierRecoveryProducts = untrustedConfig.supplierRecoveryProducts;
280
+ if (ArrayIsArray$1(untrustedConfig_supplierRecoveryProducts)) {
281
+ const untrustedConfig_supplierRecoveryProducts_array = [];
282
+ for (let i = 0, arrayLength = untrustedConfig_supplierRecoveryProducts.length; i < arrayLength; i++) {
283
+ const untrustedConfig_supplierRecoveryProducts_item = untrustedConfig_supplierRecoveryProducts[i];
284
+ if (untrustedIsObject(untrustedConfig_supplierRecoveryProducts_item)) {
285
+ const untrustedConfig_supplierRecoveryProducts_item_object = {};
286
+ if (untrustedConfig_supplierRecoveryProducts_item_object !== undefined && Object.keys(untrustedConfig_supplierRecoveryProducts_item_object).length >= 0) {
287
+ untrustedConfig_supplierRecoveryProducts_array.push(untrustedConfig_supplierRecoveryProducts_item_object);
288
288
  }
289
289
  }
290
290
  }
291
- config.productSupplierContractIds = untrustedConfig_productSupplierContractIds_array;
291
+ config.supplierRecoveryProducts = untrustedConfig_supplierRecoveryProducts_array;
292
292
  }
293
293
  return config;
294
294
  }
@@ -388,4 +388,4 @@ withDefaultLuvio((luvio) => {
388
388
  });
389
389
 
390
390
  export { createSupplierClaims, createSupplierClaims_imperative };
391
- // version: 1.284.0-8b78b708e
391
+ // version: 1.285.0-c97dec82e
package/src/raml/api.raml CHANGED
@@ -25,41 +25,44 @@ annotationTypes:
25
25
  type: string
26
26
  allowedTargets: TypeDeclaration
27
27
  types:
28
- CreateSupplierClaimsInputRepresentation:
29
- description: Input Representation to create Supplier Claims for the given warranty
30
- claims
28
+ WarrantyToSupplierClaimsInputRepresentation:
29
+ description: Input representation to create supplier recovery claims from warranty
30
+ claims.
31
31
  type: object
32
32
  properties:
33
- claimsIds:
34
- description: The input claims ids that would be used to create supplier claims
33
+ claimIds:
34
+ description: The IDs of the claim records of the claim type Warranty Claim.
35
35
  type: array
36
36
  items:
37
37
  type: string
38
38
  contextDefinition:
39
- description: Context Definition Name.
39
+ description: The developer name of the context definition that contains the
40
+ structure of a warranty claim.
40
41
  type: string
41
42
  contextMapping:
42
- description: Context Mapping Name.
43
+ description: The name of the context mapping associated with the context definition.
43
44
  type: string
44
45
  conversionType:
45
- description: Type to convert , here warranty to supplier.
46
+ description: The type of conversion.
46
47
  type: string
47
- productSupplierContractIds:
48
- description: list of map of product id and supplier contract id
48
+ supplierRecoveryProducts:
49
+ description: The products associated with the supplier recovery claim.
49
50
  type: array
50
51
  items:
51
52
  type: object
52
- CreateSupplierClaimsOutputRepresentation:
53
- description: Output representation of the supplier claim creation.
53
+ WarrantyToSupplierClaimsRepresentation:
54
+ description: Output representation with the supplier recovery claims created from
55
+ warranty claims.
54
56
  type: object
55
57
  properties:
56
- supplierClaimIds:
57
- description: List of Supplier Claim Ids
58
+ supplierClaimsIds:
59
+ description: The IDs of the claim records of the claim type Supplier Recovery
60
+ Claim.
58
61
  type: array
59
62
  items:
60
63
  type: string
61
64
  /connect:
62
- /supplier-claim:
65
+ /warranty/supplier-claim:
63
66
  post:
64
67
  displayName: postCreateSupplierClaims
65
68
  description: Create a new supplier claim from the warranty claim id.
@@ -68,8 +71,8 @@ types:
68
71
  description: Success
69
72
  body:
70
73
  application/json:
71
- type: CreateSupplierClaimsOutputRepresentation
74
+ type: WarrantyToSupplierClaimsRepresentation
72
75
  body:
73
76
  application/json:
74
- type: CreateSupplierClaimsInputRepresentation
77
+ type: WarrantyToSupplierClaimsInputRepresentation
75
78
  (oas-body-name): supplierClaimInput
@@ -8,12 +8,12 @@ uses:
8
8
  (luvio.ttl): 60000
9
9
 
10
10
  types:
11
- CreateSupplierClaimsOutputRepresentation:
11
+ WarrantyToSupplierClaimsRepresentation:
12
12
  (luvio.ttl): 30000
13
13
  (luvio.opaque): true
14
14
 
15
15
  /connect:
16
- /supplier-claim:
16
+ /warranty/supplier-claim:
17
17
  post:
18
18
  (luvio.method): get
19
19
  (luvio.adapter):
@@ -1,40 +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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "ddafa9bfec7446269dd760b630c2184e";
3
- export declare function validate(obj: any, path?: string): TypeError | null;
4
- export declare const RepresentationType: string;
5
- export declare function normalize(input: CreateSupplierClaimsInputRepresentation, existing: CreateSupplierClaimsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CreateSupplierClaimsInputRepresentationNormalized;
6
- export declare const select: () => $64$luvio_engine_FragmentSelection;
7
- export declare function equals(existing: CreateSupplierClaimsInputRepresentationNormalized, incoming: CreateSupplierClaimsInputRepresentationNormalized): 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: CreateSupplierClaimsInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
- /**
11
- * Input Representation to create Supplier Claims for the given warranty claims
12
- *
13
- * Keys:
14
- * (none)
15
- */
16
- export interface CreateSupplierClaimsInputRepresentationNormalized {
17
- /** The input claims ids that would be used to create supplier claims */
18
- claimsIds: Array<string>;
19
- /** Context Definition Name. */
20
- contextDefinition: string;
21
- /** Context Mapping Name. */
22
- contextMapping: string;
23
- /** Type to convert , here warranty to supplier. */
24
- conversionType: string;
25
- /** list of map of product id and supplier contract id */
26
- productSupplierContractIds: Array<{}>;
27
- }
28
- /**
29
- * Input Representation to create Supplier Claims for the given warranty claims
30
- *
31
- * Keys:
32
- * (none)
33
- */
34
- export interface CreateSupplierClaimsInputRepresentation {
35
- claimsIds: Array<string>;
36
- contextDefinition: string;
37
- contextMapping: string;
38
- conversionType: string;
39
- productSupplierContractIds: Array<{}>;
40
- }
@@ -1,29 +0,0 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, 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 TTL = 30000;
3
- export declare const VERSION = "f59e2a1bb756e1ea356a58ac8e865bf2";
4
- export declare function validate(obj: any, path?: string): TypeError | null;
5
- export declare const RepresentationType: string;
6
- export declare function normalize(input: CreateSupplierClaimsOutputRepresentation, existing: CreateSupplierClaimsOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CreateSupplierClaimsOutputRepresentationNormalized;
7
- export declare const select: () => $64$luvio_engine_BaseFragment;
8
- export declare function equals(existing: CreateSupplierClaimsOutputRepresentationNormalized, incoming: CreateSupplierClaimsOutputRepresentationNormalized): boolean;
9
- export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CreateSupplierClaimsOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
- /**
12
- * Output representation of the supplier claim creation.
13
- *
14
- * Keys:
15
- * (none)
16
- */
17
- export interface CreateSupplierClaimsOutputRepresentationNormalized {
18
- /** List of Supplier Claim Ids */
19
- supplierClaimIds: Array<string>;
20
- }
21
- /**
22
- * Output representation of the supplier claim creation.
23
- *
24
- * Keys:
25
- * (none)
26
- */
27
- export interface CreateSupplierClaimsOutputRepresentation {
28
- supplierClaimIds: Array<string>;
29
- }