@salesforce/lds-adapters-revenue-sales-transaction-contexts 1.307.0 → 1.308.0-dev2

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.
@@ -112,7 +112,7 @@ function createLink(ref) {
112
112
  };
113
113
  }
114
114
 
115
- const VERSION$1 = "a0c4d1b3fd4cdd35e2f33ce19475d010";
115
+ const VERSION$1 = "9021e778b754c2baef6ce3e52b1e110f";
116
116
  function validate$1(obj, path = 'RampDealServiceErrorResponseRepresentation') {
117
117
  const v_error = (() => {
118
118
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -128,6 +128,11 @@ function validate$1(obj, path = 'RampDealServiceErrorResponseRepresentation') {
128
128
  if (typeof obj_message !== 'string') {
129
129
  return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
130
130
  }
131
+ const obj_referenceId = obj.referenceId;
132
+ const path_referenceId = path + '.referenceId';
133
+ if (typeof obj_referenceId !== 'string') {
134
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceId + '" (at "' + path_referenceId + '")');
135
+ }
131
136
  })();
132
137
  return v_error === undefined ? null : v_error;
133
138
  }
@@ -144,6 +149,10 @@ const select$5 = function RampDealServiceErrorResponseRepresentationSelect() {
144
149
  {
145
150
  name: 'message',
146
151
  kind: 'Scalar'
152
+ },
153
+ {
154
+ name: 'referenceId',
155
+ kind: 'Scalar'
147
156
  }
148
157
  ]
149
158
  };
@@ -159,6 +168,11 @@ function equals$1(existing, incoming) {
159
168
  if (!(existing_message === incoming_message)) {
160
169
  return false;
161
170
  }
171
+ const existing_referenceId = existing.referenceId;
172
+ const incoming_referenceId = incoming.referenceId;
173
+ if (!(existing_referenceId === incoming_referenceId)) {
174
+ return false;
175
+ }
162
176
  return true;
163
177
  }
164
178
 
@@ -1,5 +1,5 @@
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
- export declare const VERSION = "a0c4d1b3fd4cdd35e2f33ce19475d010";
2
+ export declare const VERSION = "9021e778b754c2baef6ce3e52b1e110f";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: RampDealServiceErrorResponseRepresentation, existing: RampDealServiceErrorResponseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RampDealServiceErrorResponseRepresentationNormalized;
@@ -18,6 +18,8 @@ export interface RampDealServiceErrorResponseRepresentationNormalized {
18
18
  errorCode: string;
19
19
  /** Error message from Price Ramps Service Response. */
20
20
  message: string;
21
+ /** Reference Id for error message from Ramp deal Service Response. */
22
+ referenceId: string;
21
23
  }
22
24
  /**
23
25
  * Price ramps Service Error response representation
@@ -28,4 +30,5 @@ export interface RampDealServiceErrorResponseRepresentationNormalized {
28
30
  export interface RampDealServiceErrorResponseRepresentation {
29
31
  errorCode: string;
30
32
  message: string;
33
+ referenceId: string;
31
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-revenue-sales-transaction-contexts",
3
- "version": "1.307.0",
3
+ "version": "1.308.0-dev2",
4
4
  "description": "The API family provides set of APIs which will allow a sales rep to provide year over year deal to a customer and lock in long term revenue and customer.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/revenue-sales-transaction-contexts.js",
@@ -40,11 +40,11 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.307.0"
43
+ "@salesforce/lds-bindings": "^1.308.0-dev2"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.307.0",
47
- "@salesforce/lds-karma": "^1.307.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.308.0-dev2",
47
+ "@salesforce/lds-karma": "^1.308.0-dev2"
48
48
  },
49
49
  "nx": {
50
50
  "targets": {
package/sfdc/index.js CHANGED
@@ -122,7 +122,7 @@ function createLink(ref) {
122
122
  };
123
123
  }
124
124
 
125
- const VERSION$1 = "a0c4d1b3fd4cdd35e2f33ce19475d010";
125
+ const VERSION$1 = "9021e778b754c2baef6ce3e52b1e110f";
126
126
  function validate$1(obj, path = 'RampDealServiceErrorResponseRepresentation') {
127
127
  const v_error = (() => {
128
128
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -138,6 +138,11 @@ function validate$1(obj, path = 'RampDealServiceErrorResponseRepresentation') {
138
138
  if (typeof obj_message !== 'string') {
139
139
  return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
140
140
  }
141
+ const obj_referenceId = obj.referenceId;
142
+ const path_referenceId = path + '.referenceId';
143
+ if (typeof obj_referenceId !== 'string') {
144
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceId + '" (at "' + path_referenceId + '")');
145
+ }
141
146
  })();
142
147
  return v_error === undefined ? null : v_error;
143
148
  }
@@ -154,6 +159,10 @@ const select$5 = function RampDealServiceErrorResponseRepresentationSelect() {
154
159
  {
155
160
  name: 'message',
156
161
  kind: 'Scalar'
162
+ },
163
+ {
164
+ name: 'referenceId',
165
+ kind: 'Scalar'
157
166
  }
158
167
  ]
159
168
  };
@@ -169,6 +178,11 @@ function equals$1(existing, incoming) {
169
178
  if (!(existing_message === incoming_message)) {
170
179
  return false;
171
180
  }
181
+ const existing_referenceId = existing.referenceId;
182
+ const incoming_referenceId = incoming.referenceId;
183
+ if (!(existing_referenceId === incoming_referenceId)) {
184
+ return false;
185
+ }
172
186
  return true;
173
187
  }
174
188
 
@@ -873,4 +887,4 @@ withDefaultLuvio((luvio) => {
873
887
  });
874
888
 
875
889
  export { createRampDeal, deleteRampDeal, updateRampDeal, viewRampDeal, viewRampDealNotifyChange, viewRampDeal_imperative };
876
- // version: 1.307.0-1e4b921353
890
+ // version: 1.308.0-dev2-9bec7cb98f
package/src/raml/api.raml CHANGED
@@ -77,11 +77,11 @@ types:
77
77
  trialTermUnit:
78
78
  description: 'Trial term unit : Days'
79
79
  type: string
80
+ required: false
80
81
  enum:
81
82
  - Annual
82
83
  - Days
83
84
  - Months
84
- required: false
85
85
  DeleteRampDealInputRepresentation:
86
86
  description: Delete ramp deal connect API input representation
87
87
  type: object
@@ -111,6 +111,9 @@ types:
111
111
  message:
112
112
  description: Error message from Price Ramps Service Response.
113
113
  type: string
114
+ referenceId:
115
+ description: Reference Id for error message from Ramp deal Service Response.
116
+ type: string
114
117
  RampDealServiceOutputRepresentation:
115
118
  description: Price Ramp APIs output representation
116
119
  type: object