@salesforce/lds-adapters-platform-appexchange 1.325.0 → 1.326.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.
- package/dist/es/es2018/platform-appexchange.js +2854 -57
- package/dist/es/es2018/types/src/generated/adapters/getListingDetails.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/postAppExchangeUserEvents.d.ts +24 -26
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectAppexchangeListingsByListingId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectAppexchangeUserEvents.d.ts +24 -26
- package/dist/es/es2018/types/src/generated/types/AppExchangeCarouselItemDataRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeCarouselItemImageRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeCarouselItemRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeCarouselItemVideoRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeCarouselPluginRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeContentItemDataRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeContentItemFileRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeContentItemRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeContentItemUrlRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeContentPluginRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeDemoPluginRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeDemoVideoRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeForceApiSolutionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeForceCopilotListingExtensionRepresentation.d.ts +301 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeForceExtensionRepresentation.d.ts +301 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeForcePackageListingExtensionRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeForcePackageListingTestDriveExtensionRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeForcePackageManifestRepresentation.d.ts +58 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeForcePackageSolutionRepresentation.d.ts +58 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeForcePackageVersionRepresentation.d.ts +67 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeForcePublisherExtensionRepresentation.d.ts +85 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeFreePricingModelRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeFreeToInstallPricingModelRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeFreemiumPricingModelRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeLeadTrialInformationPluginRepresentation.d.ts +58 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeListingCategoriesRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeListingDetailsRepresentation.d.ts +96 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeListingExtensionsRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeListingLogoRepresentation.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/types/AppExchangeListingPluginsRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeListingReviewsSummaryRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeListingSecurityReviewRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeListingSolutionDetailRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeListingSolutionRepresentation.d.ts +60 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeLogoSetItemRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeLogoSetPluginRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangePaidPricingModelRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangePaidWithCheckoutPricingModelRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangePricingModelRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangePricingPlanRepresentation.d.ts +70 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangePricingRepresentation.d.ts +73 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangePublisherExtensionsRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangePublisherLogoItemRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangePublisherLogoRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangePublisherPluginsRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangePublisherRepresentation.d.ts +93 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeSearchListingCollectionRepresentation.d.ts +3 -4
- package/dist/es/es2018/types/src/generated/types/AppExchangeSearchListingRepresentation.d.ts +4 -5
- package/dist/es/es2018/types/src/generated/types/AppExchangeSupportInformationPluginRepresentation.d.ts +73 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeTableauAcceleratorSolutionRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeTableauExtensionRepresentation.d.ts +113 -0
- package/dist/es/es2018/types/src/generated/types/AppExchangeUserEventsInputImageRepresentation.d.ts +2 -3
- package/dist/es/es2018/types/src/generated/types/AppExchangeUserEventsInputRepresentation.d.ts +51 -57
- package/dist/es/es2018/types/src/generated/types/AppExchangeUserEventsOutputRepresentation.d.ts +2 -3
- package/package.json +3 -3
- package/sfdc/index.js +2897 -93
- package/src/raml/api.raml +1984 -5
- package/src/raml/luvio.raml +12 -15
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
|
-
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
10
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
11
11
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
12
|
/**
|
|
13
13
|
* Validates an adapter config is well-formed.
|
|
@@ -31,7 +31,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
31
31
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
32
32
|
}
|
|
33
33
|
const supported = required.concat(optional);
|
|
34
|
-
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
34
|
+
if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
|
|
35
35
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -71,6 +71,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
71
71
|
}
|
|
72
72
|
const keyPrefix = 'appexchange';
|
|
73
73
|
|
|
74
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
74
75
|
const { isArray: ArrayIsArray } = Array;
|
|
75
76
|
const { stringify: JSONStringify } = JSON;
|
|
76
77
|
function createLink(ref) {
|
|
@@ -79,6 +80,2803 @@ function createLink(ref) {
|
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
82
|
|
|
83
|
+
function validate$A(obj, path = 'AppExchangeListingCategoriesRepresentation') {
|
|
84
|
+
const v_error = (() => {
|
|
85
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
86
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
87
|
+
}
|
|
88
|
+
const obj_categories = obj.categories;
|
|
89
|
+
const path_categories = path + '.categories';
|
|
90
|
+
if (!ArrayIsArray(obj_categories)) {
|
|
91
|
+
return new TypeError('Expected "array" but received "' + typeof obj_categories + '" (at "' + path_categories + '")');
|
|
92
|
+
}
|
|
93
|
+
for (let i = 0; i < obj_categories.length; i++) {
|
|
94
|
+
const obj_categories_item = obj_categories[i];
|
|
95
|
+
const path_categories_item = path_categories + '[' + i + ']';
|
|
96
|
+
if (typeof obj_categories_item !== 'string') {
|
|
97
|
+
return new TypeError('Expected "string" but received "' + typeof obj_categories_item + '" (at "' + path_categories_item + '")');
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const obj_isSelected = obj.isSelected;
|
|
101
|
+
const path_isSelected = path + '.isSelected';
|
|
102
|
+
if (typeof obj_isSelected !== 'boolean') {
|
|
103
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSelected + '" (at "' + path_isSelected + '")');
|
|
104
|
+
}
|
|
105
|
+
})();
|
|
106
|
+
return v_error === undefined ? null : v_error;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function validate$z(obj, path = 'AppExchangeForceCopilotListingExtensionRepresentation') {
|
|
110
|
+
const v_error = (() => {
|
|
111
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
112
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
113
|
+
}
|
|
114
|
+
const obj_acceptedCheckoutAgreementDate = obj.acceptedCheckoutAgreementDate;
|
|
115
|
+
const path_acceptedCheckoutAgreementDate = path + '.acceptedCheckoutAgreementDate';
|
|
116
|
+
if (typeof obj_acceptedCheckoutAgreementDate !== 'string') {
|
|
117
|
+
return new TypeError('Expected "string" but received "' + typeof obj_acceptedCheckoutAgreementDate + '" (at "' + path_acceptedCheckoutAgreementDate + '")');
|
|
118
|
+
}
|
|
119
|
+
const obj_acceptedFreeAgreementDate = obj.acceptedFreeAgreementDate;
|
|
120
|
+
const path_acceptedFreeAgreementDate = path + '.acceptedFreeAgreementDate';
|
|
121
|
+
if (typeof obj_acceptedFreeAgreementDate !== 'string') {
|
|
122
|
+
return new TypeError('Expected "string" but received "' + typeof obj_acceptedFreeAgreementDate + '" (at "' + path_acceptedFreeAgreementDate + '")');
|
|
123
|
+
}
|
|
124
|
+
const obj_acceptedFreeAppsAgreement = obj.acceptedFreeAppsAgreement;
|
|
125
|
+
const path_acceptedFreeAppsAgreement = path + '.acceptedFreeAppsAgreement';
|
|
126
|
+
if (typeof obj_acceptedFreeAppsAgreement !== 'boolean') {
|
|
127
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_acceptedFreeAppsAgreement + '" (at "' + path_acceptedFreeAppsAgreement + '")');
|
|
128
|
+
}
|
|
129
|
+
const obj_acceptedPaidAppsAgreementDate = obj.acceptedPaidAppsAgreementDate;
|
|
130
|
+
const path_acceptedPaidAppsAgreementDate = path + '.acceptedPaidAppsAgreementDate';
|
|
131
|
+
if (typeof obj_acceptedPaidAppsAgreementDate !== 'string') {
|
|
132
|
+
return new TypeError('Expected "string" but received "' + typeof obj_acceptedPaidAppsAgreementDate + '" (at "' + path_acceptedPaidAppsAgreementDate + '")');
|
|
133
|
+
}
|
|
134
|
+
const obj_accessibleSolutionURL = obj.accessibleSolutionURL;
|
|
135
|
+
const path_accessibleSolutionURL = path + '.accessibleSolutionURL';
|
|
136
|
+
if (typeof obj_accessibleSolutionURL !== 'string') {
|
|
137
|
+
return new TypeError('Expected "string" but received "' + typeof obj_accessibleSolutionURL + '" (at "' + path_accessibleSolutionURL + '")');
|
|
138
|
+
}
|
|
139
|
+
const obj_achApplicationFee = obj.achApplicationFee;
|
|
140
|
+
const path_achApplicationFee = path + '.achApplicationFee';
|
|
141
|
+
if (typeof obj_achApplicationFee !== 'string') {
|
|
142
|
+
return new TypeError('Expected "string" but received "' + typeof obj_achApplicationFee + '" (at "' + path_achApplicationFee + '")');
|
|
143
|
+
}
|
|
144
|
+
const obj_allowACHPayment = obj.allowACHPayment;
|
|
145
|
+
const path_allowACHPayment = path + '.allowACHPayment';
|
|
146
|
+
if (typeof obj_allowACHPayment !== 'boolean') {
|
|
147
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_allowACHPayment + '" (at "' + path_allowACHPayment + '")');
|
|
148
|
+
}
|
|
149
|
+
const obj_allowCCPayment = obj.allowCCPayment;
|
|
150
|
+
const path_allowCCPayment = path + '.allowCCPayment';
|
|
151
|
+
if (typeof obj_allowCCPayment !== 'boolean') {
|
|
152
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_allowCCPayment + '" (at "' + path_allowCCPayment + '")');
|
|
153
|
+
}
|
|
154
|
+
const obj_allowSEPAPayment = obj.allowSEPAPayment;
|
|
155
|
+
const path_allowSEPAPayment = path + '.allowSEPAPayment';
|
|
156
|
+
if (typeof obj_allowSEPAPayment !== 'boolean') {
|
|
157
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_allowSEPAPayment + '" (at "' + path_allowSEPAPayment + '")');
|
|
158
|
+
}
|
|
159
|
+
const obj_appType = obj.appType;
|
|
160
|
+
const path_appType = path + '.appType';
|
|
161
|
+
if (typeof obj_appType !== 'string') {
|
|
162
|
+
return new TypeError('Expected "string" but received "' + typeof obj_appType + '" (at "' + path_appType + '")');
|
|
163
|
+
}
|
|
164
|
+
const obj_approvedDate = obj.approvedDate;
|
|
165
|
+
const path_approvedDate = path + '.approvedDate';
|
|
166
|
+
if (typeof obj_approvedDate !== 'string') {
|
|
167
|
+
return new TypeError('Expected "string" but received "' + typeof obj_approvedDate + '" (at "' + path_approvedDate + '")');
|
|
168
|
+
}
|
|
169
|
+
const obj_businessApproval = obj.businessApproval;
|
|
170
|
+
const path_businessApproval = path + '.businessApproval';
|
|
171
|
+
if (typeof obj_businessApproval !== 'string') {
|
|
172
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessApproval + '" (at "' + path_businessApproval + '")');
|
|
173
|
+
}
|
|
174
|
+
const obj_businessQuestionnaireSubmittedOn = obj.businessQuestionnaireSubmittedOn;
|
|
175
|
+
const path_businessQuestionnaireSubmittedOn = path + '.businessQuestionnaireSubmittedOn';
|
|
176
|
+
if (typeof obj_businessQuestionnaireSubmittedOn !== 'string') {
|
|
177
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessQuestionnaireSubmittedOn + '" (at "' + path_businessQuestionnaireSubmittedOn + '")');
|
|
178
|
+
}
|
|
179
|
+
const obj_businessRejectionComment = obj.businessRejectionComment;
|
|
180
|
+
const path_businessRejectionComment = path + '.businessRejectionComment';
|
|
181
|
+
if (typeof obj_businessRejectionComment !== 'string') {
|
|
182
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessRejectionComment + '" (at "' + path_businessRejectionComment + '")');
|
|
183
|
+
}
|
|
184
|
+
const obj_categories = obj.categories;
|
|
185
|
+
const path_categories = path + '.categories';
|
|
186
|
+
if (typeof obj_categories !== 'string') {
|
|
187
|
+
return new TypeError('Expected "string" but received "' + typeof obj_categories + '" (at "' + path_categories + '")');
|
|
188
|
+
}
|
|
189
|
+
const obj_categoriesToFeeds = obj.categoriesToFeeds;
|
|
190
|
+
const path_categoriesToFeeds = path + '.categoriesToFeeds';
|
|
191
|
+
if (typeof obj_categoriesToFeeds !== 'string') {
|
|
192
|
+
return new TypeError('Expected "string" but received "' + typeof obj_categoriesToFeeds + '" (at "' + path_categoriesToFeeds + '")');
|
|
193
|
+
}
|
|
194
|
+
const obj_checkoutEnabledDate = obj.checkoutEnabledDate;
|
|
195
|
+
const path_checkoutEnabledDate = path + '.checkoutEnabledDate';
|
|
196
|
+
if (typeof obj_checkoutEnabledDate !== 'string') {
|
|
197
|
+
return new TypeError('Expected "string" but received "' + typeof obj_checkoutEnabledDate + '" (at "' + path_checkoutEnabledDate + '")');
|
|
198
|
+
}
|
|
199
|
+
const obj_collectPaymentBeforeInstall = obj.collectPaymentBeforeInstall;
|
|
200
|
+
const path_collectPaymentBeforeInstall = path + '.collectPaymentBeforeInstall';
|
|
201
|
+
if (typeof obj_collectPaymentBeforeInstall !== 'boolean') {
|
|
202
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_collectPaymentBeforeInstall + '" (at "' + path_collectPaymentBeforeInstall + '")');
|
|
203
|
+
}
|
|
204
|
+
const obj_contractStatus = obj.contractStatus;
|
|
205
|
+
const path_contractStatus = path + '.contractStatus';
|
|
206
|
+
if (typeof obj_contractStatus !== 'string') {
|
|
207
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contractStatus + '" (at "' + path_contractStatus + '")');
|
|
208
|
+
}
|
|
209
|
+
const obj_contractType = obj.contractType;
|
|
210
|
+
const path_contractType = path + '.contractType';
|
|
211
|
+
if (typeof obj_contractType !== 'string') {
|
|
212
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contractType + '" (at "' + path_contractType + '")');
|
|
213
|
+
}
|
|
214
|
+
const obj_createdByOrgID = obj.createdByOrgID;
|
|
215
|
+
const path_createdByOrgID = path + '.createdByOrgID';
|
|
216
|
+
if (typeof obj_createdByOrgID !== 'string') {
|
|
217
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdByOrgID + '" (at "' + path_createdByOrgID + '")');
|
|
218
|
+
}
|
|
219
|
+
const obj_creditorIdentifier = obj.creditorIdentifier;
|
|
220
|
+
const path_creditorIdentifier = path + '.creditorIdentifier';
|
|
221
|
+
if (typeof obj_creditorIdentifier !== 'string') {
|
|
222
|
+
return new TypeError('Expected "string" but received "' + typeof obj_creditorIdentifier + '" (at "' + path_creditorIdentifier + '")');
|
|
223
|
+
}
|
|
224
|
+
const obj_curatedListing1 = obj.curatedListing1;
|
|
225
|
+
const path_curatedListing1 = path + '.curatedListing1';
|
|
226
|
+
if (typeof obj_curatedListing1 !== 'string') {
|
|
227
|
+
return new TypeError('Expected "string" but received "' + typeof obj_curatedListing1 + '" (at "' + path_curatedListing1 + '")');
|
|
228
|
+
}
|
|
229
|
+
const obj_curatedListing2 = obj.curatedListing2;
|
|
230
|
+
const path_curatedListing2 = path + '.curatedListing2';
|
|
231
|
+
if (typeof obj_curatedListing2 !== 'string') {
|
|
232
|
+
return new TypeError('Expected "string" but received "' + typeof obj_curatedListing2 + '" (at "' + path_curatedListing2 + '")');
|
|
233
|
+
}
|
|
234
|
+
const obj_curatedListing3 = obj.curatedListing3;
|
|
235
|
+
const path_curatedListing3 = path + '.curatedListing3';
|
|
236
|
+
if (typeof obj_curatedListing3 !== 'string') {
|
|
237
|
+
return new TypeError('Expected "string" but received "' + typeof obj_curatedListing3 + '" (at "' + path_curatedListing3 + '")');
|
|
238
|
+
}
|
|
239
|
+
const obj_curatedListing4 = obj.curatedListing4;
|
|
240
|
+
const path_curatedListing4 = path + '.curatedListing4';
|
|
241
|
+
if (typeof obj_curatedListing4 !== 'string') {
|
|
242
|
+
return new TypeError('Expected "string" but received "' + typeof obj_curatedListing4 + '" (at "' + path_curatedListing4 + '")');
|
|
243
|
+
}
|
|
244
|
+
const obj_curatedListing5 = obj.curatedListing5;
|
|
245
|
+
const path_curatedListing5 = path + '.curatedListing5';
|
|
246
|
+
if (typeof obj_curatedListing5 !== 'string') {
|
|
247
|
+
return new TypeError('Expected "string" but received "' + typeof obj_curatedListing5 + '" (at "' + path_curatedListing5 + '")');
|
|
248
|
+
}
|
|
249
|
+
const obj_deleteReason = obj.deleteReason;
|
|
250
|
+
const path_deleteReason = path + '.deleteReason';
|
|
251
|
+
if (typeof obj_deleteReason !== 'string') {
|
|
252
|
+
return new TypeError('Expected "string" but received "' + typeof obj_deleteReason + '" (at "' + path_deleteReason + '")');
|
|
253
|
+
}
|
|
254
|
+
const obj_delistedDate = obj.delistedDate;
|
|
255
|
+
const path_delistedDate = path + '.delistedDate';
|
|
256
|
+
if (typeof obj_delistedDate !== 'string') {
|
|
257
|
+
return new TypeError('Expected "string" but received "' + typeof obj_delistedDate + '" (at "' + path_delistedDate + '")');
|
|
258
|
+
}
|
|
259
|
+
const obj_delistedReason = obj.delistedReason;
|
|
260
|
+
const path_delistedReason = path + '.delistedReason';
|
|
261
|
+
if (typeof obj_delistedReason !== 'string') {
|
|
262
|
+
return new TypeError('Expected "string" but received "' + typeof obj_delistedReason + '" (at "' + path_delistedReason + '")');
|
|
263
|
+
}
|
|
264
|
+
const obj_devices = obj.devices;
|
|
265
|
+
const path_devices = path + '.devices';
|
|
266
|
+
if (!ArrayIsArray(obj_devices)) {
|
|
267
|
+
return new TypeError('Expected "array" but received "' + typeof obj_devices + '" (at "' + path_devices + '")');
|
|
268
|
+
}
|
|
269
|
+
for (let i = 0; i < obj_devices.length; i++) {
|
|
270
|
+
const obj_devices_item = obj_devices[i];
|
|
271
|
+
const path_devices_item = path_devices + '[' + i + ']';
|
|
272
|
+
if (typeof obj_devices_item !== 'string') {
|
|
273
|
+
return new TypeError('Expected "string" but received "' + typeof obj_devices_item + '" (at "' + path_devices_item + '")');
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
const obj_directoryEntryID = obj.directoryEntryID;
|
|
277
|
+
const path_directoryEntryID = path + '.directoryEntryID';
|
|
278
|
+
if (typeof obj_directoryEntryID !== 'string') {
|
|
279
|
+
return new TypeError('Expected "string" but received "' + typeof obj_directoryEntryID + '" (at "' + path_directoryEntryID + '")');
|
|
280
|
+
}
|
|
281
|
+
const obj_displayHover = obj.displayHover;
|
|
282
|
+
const path_displayHover = path + '.displayHover';
|
|
283
|
+
if (typeof obj_displayHover !== 'boolean') {
|
|
284
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_displayHover + '" (at "' + path_displayHover + '")');
|
|
285
|
+
}
|
|
286
|
+
const obj_diverseOwnedBusinessURL = obj.diverseOwnedBusinessURL;
|
|
287
|
+
const path_diverseOwnedBusinessURL = path + '.diverseOwnedBusinessURL';
|
|
288
|
+
if (typeof obj_diverseOwnedBusinessURL !== 'string') {
|
|
289
|
+
return new TypeError('Expected "string" but received "' + typeof obj_diverseOwnedBusinessURL + '" (at "' + path_diverseOwnedBusinessURL + '")');
|
|
290
|
+
}
|
|
291
|
+
const obj_editions = obj.editions;
|
|
292
|
+
const path_editions = path + '.editions';
|
|
293
|
+
if (!ArrayIsArray(obj_editions)) {
|
|
294
|
+
return new TypeError('Expected "array" but received "' + typeof obj_editions + '" (at "' + path_editions + '")');
|
|
295
|
+
}
|
|
296
|
+
for (let i = 0; i < obj_editions.length; i++) {
|
|
297
|
+
const obj_editions_item = obj_editions[i];
|
|
298
|
+
const path_editions_item = path_editions + '[' + i + ']';
|
|
299
|
+
if (typeof obj_editions_item !== 'string') {
|
|
300
|
+
return new TypeError('Expected "string" but received "' + typeof obj_editions_item + '" (at "' + path_editions_item + '")');
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
const obj_featured = obj.featured;
|
|
304
|
+
const path_featured = path + '.featured';
|
|
305
|
+
if (typeof obj_featured !== 'boolean') {
|
|
306
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_featured + '" (at "' + path_featured + '")');
|
|
307
|
+
}
|
|
308
|
+
const obj_filledDateTime = obj.filledDateTime;
|
|
309
|
+
const path_filledDateTime = path + '.filledDateTime';
|
|
310
|
+
if (typeof obj_filledDateTime !== 'string') {
|
|
311
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filledDateTime + '" (at "' + path_filledDateTime + '")');
|
|
312
|
+
}
|
|
313
|
+
const obj_highlights = obj.highlights;
|
|
314
|
+
const path_highlights = path + '.highlights';
|
|
315
|
+
if (!ArrayIsArray(obj_highlights)) {
|
|
316
|
+
return new TypeError('Expected "array" but received "' + typeof obj_highlights + '" (at "' + path_highlights + '")');
|
|
317
|
+
}
|
|
318
|
+
for (let i = 0; i < obj_highlights.length; i++) {
|
|
319
|
+
const obj_highlights_item = obj_highlights[i];
|
|
320
|
+
const path_highlights_item = path_highlights + '[' + i + ']';
|
|
321
|
+
if (typeof obj_highlights_item !== 'string') {
|
|
322
|
+
return new TypeError('Expected "string" but received "' + typeof obj_highlights_item + '" (at "' + path_highlights_item + '")');
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
const obj_industries = obj.industries;
|
|
326
|
+
const path_industries = path + '.industries';
|
|
327
|
+
if (!ArrayIsArray(obj_industries)) {
|
|
328
|
+
return new TypeError('Expected "array" but received "' + typeof obj_industries + '" (at "' + path_industries + '")');
|
|
329
|
+
}
|
|
330
|
+
for (let i = 0; i < obj_industries.length; i++) {
|
|
331
|
+
const obj_industries_item = obj_industries[i];
|
|
332
|
+
const path_industries_item = path_industries + '[' + i + ']';
|
|
333
|
+
if (typeof obj_industries_item !== 'string') {
|
|
334
|
+
return new TypeError('Expected "string" but received "' + typeof obj_industries_item + '" (at "' + path_industries_item + '")');
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
const obj_installationAgreement = obj.installationAgreement;
|
|
338
|
+
const path_installationAgreement = path + '.installationAgreement';
|
|
339
|
+
if (typeof obj_installationAgreement !== 'string') {
|
|
340
|
+
return new TypeError('Expected "string" but received "' + typeof obj_installationAgreement + '" (at "' + path_installationAgreement + '")');
|
|
341
|
+
}
|
|
342
|
+
const obj_isAccessibleSolution = obj.isAccessibleSolution;
|
|
343
|
+
const path_isAccessibleSolution = path + '.isAccessibleSolution';
|
|
344
|
+
if (typeof obj_isAccessibleSolution !== 'boolean') {
|
|
345
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAccessibleSolution + '" (at "' + path_isAccessibleSolution + '")');
|
|
346
|
+
}
|
|
347
|
+
const obj_isDiverseOwnedBusiness = obj.isDiverseOwnedBusiness;
|
|
348
|
+
const path_isDiverseOwnedBusiness = path + '.isDiverseOwnedBusiness';
|
|
349
|
+
if (typeof obj_isDiverseOwnedBusiness !== 'boolean') {
|
|
350
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDiverseOwnedBusiness + '" (at "' + path_isDiverseOwnedBusiness + '")');
|
|
351
|
+
}
|
|
352
|
+
const obj_isEinsteinAgent = obj.isEinsteinAgent;
|
|
353
|
+
const path_isEinsteinAgent = path + '.isEinsteinAgent';
|
|
354
|
+
if (typeof obj_isEinsteinAgent !== 'boolean') {
|
|
355
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isEinsteinAgent + '" (at "' + path_isEinsteinAgent + '")');
|
|
356
|
+
}
|
|
357
|
+
const obj_isFRampOffering = obj.isFRampOffering;
|
|
358
|
+
const path_isFRampOffering = path + '.isFRampOffering';
|
|
359
|
+
if (typeof obj_isFRampOffering !== 'boolean') {
|
|
360
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFRampOffering + '" (at "' + path_isFRampOffering + '")');
|
|
361
|
+
}
|
|
362
|
+
const obj_isFree = obj.isFree;
|
|
363
|
+
const path_isFree = path + '.isFree';
|
|
364
|
+
if (typeof obj_isFree !== 'boolean') {
|
|
365
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFree + '" (at "' + path_isFree + '")');
|
|
366
|
+
}
|
|
367
|
+
const obj_isFreemium = obj.isFreemium;
|
|
368
|
+
const path_isFreemium = path + '.isFreemium';
|
|
369
|
+
if (typeof obj_isFreemium !== 'boolean') {
|
|
370
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFreemium + '" (at "' + path_isFreemium + '")');
|
|
371
|
+
}
|
|
372
|
+
const obj_isHIPAACompliant = obj.isHIPAACompliant;
|
|
373
|
+
const path_isHIPAACompliant = path + '.isHIPAACompliant';
|
|
374
|
+
if (typeof obj_isHIPAACompliant !== 'boolean') {
|
|
375
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isHIPAACompliant + '" (at "' + path_isHIPAACompliant + '")');
|
|
376
|
+
}
|
|
377
|
+
const obj_isLightningAppBuilder = obj.isLightningAppBuilder;
|
|
378
|
+
const path_isLightningAppBuilder = path + '.isLightningAppBuilder';
|
|
379
|
+
if (typeof obj_isLightningAppBuilder !== 'boolean') {
|
|
380
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isLightningAppBuilder + '" (at "' + path_isLightningAppBuilder + '")');
|
|
381
|
+
}
|
|
382
|
+
const obj_isLightningComponent = obj.isLightningComponent;
|
|
383
|
+
const path_isLightningComponent = path + '.isLightningComponent';
|
|
384
|
+
if (typeof obj_isLightningComponent !== 'boolean') {
|
|
385
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isLightningComponent + '" (at "' + path_isLightningComponent + '")');
|
|
386
|
+
}
|
|
387
|
+
const obj_isLightningReady = obj.isLightningReady;
|
|
388
|
+
const path_isLightningReady = path + '.isLightningReady';
|
|
389
|
+
if (typeof obj_isLightningReady !== 'boolean') {
|
|
390
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isLightningReady + '" (at "' + path_isLightningReady + '")');
|
|
391
|
+
}
|
|
392
|
+
const obj_isMarketingCloud = obj.isMarketingCloud;
|
|
393
|
+
const path_isMarketingCloud = path + '.isMarketingCloud';
|
|
394
|
+
if (typeof obj_isMarketingCloud !== 'boolean') {
|
|
395
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMarketingCloud + '" (at "' + path_isMarketingCloud + '")');
|
|
396
|
+
}
|
|
397
|
+
const obj_isMinorityOwned = obj.isMinorityOwned;
|
|
398
|
+
const path_isMinorityOwned = path + '.isMinorityOwned';
|
|
399
|
+
if (typeof obj_isMinorityOwned !== 'boolean') {
|
|
400
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMinorityOwned + '" (at "' + path_isMinorityOwned + '")');
|
|
401
|
+
}
|
|
402
|
+
const obj_isMultiCurrency = obj.isMultiCurrency;
|
|
403
|
+
const path_isMultiCurrency = path + '.isMultiCurrency';
|
|
404
|
+
if (typeof obj_isMultiCurrency !== 'boolean') {
|
|
405
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMultiCurrency + '" (at "' + path_isMultiCurrency + '")');
|
|
406
|
+
}
|
|
407
|
+
const obj_isPersonAccounts = obj.isPersonAccounts;
|
|
408
|
+
const path_isPersonAccounts = path + '.isPersonAccounts';
|
|
409
|
+
if (typeof obj_isPersonAccounts !== 'boolean') {
|
|
410
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPersonAccounts + '" (at "' + path_isPersonAccounts + '")');
|
|
411
|
+
}
|
|
412
|
+
const obj_isPledge1Percent = obj.isPledge1Percent;
|
|
413
|
+
const path_isPledge1Percent = path + '.isPledge1Percent';
|
|
414
|
+
if (typeof obj_isPledge1Percent !== 'boolean') {
|
|
415
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPledge1Percent + '" (at "' + path_isPledge1Percent + '")');
|
|
416
|
+
}
|
|
417
|
+
const obj_isPublic = obj.isPublic;
|
|
418
|
+
const path_isPublic = path + '.isPublic';
|
|
419
|
+
if (typeof obj_isPublic !== 'boolean') {
|
|
420
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPublic + '" (at "' + path_isPublic + '")');
|
|
421
|
+
}
|
|
422
|
+
const obj_isSalesProgram = obj.isSalesProgram;
|
|
423
|
+
const path_isSalesProgram = path + '.isSalesProgram';
|
|
424
|
+
if (typeof obj_isSalesProgram !== 'boolean') {
|
|
425
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSalesProgram + '" (at "' + path_isSalesProgram + '")');
|
|
426
|
+
}
|
|
427
|
+
const obj_isSalesforce1Mobile = obj.isSalesforce1Mobile;
|
|
428
|
+
const path_isSalesforce1Mobile = path + '.isSalesforce1Mobile';
|
|
429
|
+
if (typeof obj_isSalesforce1Mobile !== 'boolean') {
|
|
430
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSalesforce1Mobile + '" (at "' + path_isSalesforce1Mobile + '")');
|
|
431
|
+
}
|
|
432
|
+
const obj_isSalesforceShield = obj.isSalesforceShield;
|
|
433
|
+
const path_isSalesforceShield = path + '.isSalesforceShield';
|
|
434
|
+
if (typeof obj_isSalesforceShield !== 'boolean') {
|
|
435
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSalesforceShield + '" (at "' + path_isSalesforceShield + '")');
|
|
436
|
+
}
|
|
437
|
+
const obj_languages = obj.languages;
|
|
438
|
+
const path_languages = path + '.languages';
|
|
439
|
+
if (!ArrayIsArray(obj_languages)) {
|
|
440
|
+
return new TypeError('Expected "array" but received "' + typeof obj_languages + '" (at "' + path_languages + '")');
|
|
441
|
+
}
|
|
442
|
+
for (let i = 0; i < obj_languages.length; i++) {
|
|
443
|
+
const obj_languages_item = obj_languages[i];
|
|
444
|
+
const path_languages_item = path_languages + '[' + i + ']';
|
|
445
|
+
if (typeof obj_languages_item !== 'string') {
|
|
446
|
+
return new TypeError('Expected "string" but received "' + typeof obj_languages_item + '" (at "' + path_languages_item + '")');
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
const obj_lastStatusChangeDateTime = obj.lastStatusChangeDateTime;
|
|
450
|
+
const path_lastStatusChangeDateTime = path + '.lastStatusChangeDateTime';
|
|
451
|
+
if (typeof obj_lastStatusChangeDateTime !== 'string') {
|
|
452
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastStatusChangeDateTime + '" (at "' + path_lastStatusChangeDateTime + '")');
|
|
453
|
+
}
|
|
454
|
+
const obj_learnMoreURL = obj.learnMoreURL;
|
|
455
|
+
const path_learnMoreURL = path + '.learnMoreURL';
|
|
456
|
+
if (typeof obj_learnMoreURL !== 'string') {
|
|
457
|
+
return new TypeError('Expected "string" but received "' + typeof obj_learnMoreURL + '" (at "' + path_learnMoreURL + '")');
|
|
458
|
+
}
|
|
459
|
+
const obj_licenseAgreement = obj.licenseAgreement;
|
|
460
|
+
const path_licenseAgreement = path + '.licenseAgreement';
|
|
461
|
+
if (typeof obj_licenseAgreement !== 'string') {
|
|
462
|
+
return new TypeError('Expected "string" but received "' + typeof obj_licenseAgreement + '" (at "' + path_licenseAgreement + '")');
|
|
463
|
+
}
|
|
464
|
+
const obj_listingCategories = obj.listingCategories;
|
|
465
|
+
const path_listingCategories = path + '.listingCategories';
|
|
466
|
+
if (!ArrayIsArray(obj_listingCategories)) {
|
|
467
|
+
return new TypeError('Expected "array" but received "' + typeof obj_listingCategories + '" (at "' + path_listingCategories + '")');
|
|
468
|
+
}
|
|
469
|
+
for (let i = 0; i < obj_listingCategories.length; i++) {
|
|
470
|
+
const obj_listingCategories_item = obj_listingCategories[i];
|
|
471
|
+
const path_listingCategories_item = path_listingCategories + '[' + i + ']';
|
|
472
|
+
if (typeof obj_listingCategories_item !== 'string') {
|
|
473
|
+
return new TypeError('Expected "string" but received "' + typeof obj_listingCategories_item + '" (at "' + path_listingCategories_item + '")');
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
const obj_listingUrl = obj.listingUrl;
|
|
477
|
+
const path_listingUrl = path + '.listingUrl';
|
|
478
|
+
if (typeof obj_listingUrl !== 'string') {
|
|
479
|
+
return new TypeError('Expected "string" but received "' + typeof obj_listingUrl + '" (at "' + path_listingUrl + '")');
|
|
480
|
+
}
|
|
481
|
+
const obj_longDescription = obj.longDescription;
|
|
482
|
+
const path_longDescription = path + '.longDescription';
|
|
483
|
+
if (typeof obj_longDescription !== 'string') {
|
|
484
|
+
return new TypeError('Expected "string" but received "' + typeof obj_longDescription + '" (at "' + path_longDescription + '")');
|
|
485
|
+
}
|
|
486
|
+
const obj_marketplace = obj.marketplace;
|
|
487
|
+
const path_marketplace = path + '.marketplace';
|
|
488
|
+
if (typeof obj_marketplace !== 'string') {
|
|
489
|
+
return new TypeError('Expected "string" but received "' + typeof obj_marketplace + '" (at "' + path_marketplace + '")');
|
|
490
|
+
}
|
|
491
|
+
const obj_orderInSetup = obj.orderInSetup;
|
|
492
|
+
const path_orderInSetup = path + '.orderInSetup';
|
|
493
|
+
if (typeof obj_orderInSetup !== 'number' || (typeof obj_orderInSetup === 'number' && Math.floor(obj_orderInSetup) !== obj_orderInSetup)) {
|
|
494
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_orderInSetup + '" (at "' + path_orderInSetup + '")');
|
|
495
|
+
}
|
|
496
|
+
const obj_org62ApplicationId = obj.org62ApplicationId;
|
|
497
|
+
const path_org62ApplicationId = path + '.org62ApplicationId';
|
|
498
|
+
if (typeof obj_org62ApplicationId !== 'string') {
|
|
499
|
+
return new TypeError('Expected "string" but received "' + typeof obj_org62ApplicationId + '" (at "' + path_org62ApplicationId + '")');
|
|
500
|
+
}
|
|
501
|
+
const obj_priceDetails = obj.priceDetails;
|
|
502
|
+
const path_priceDetails = path + '.priceDetails';
|
|
503
|
+
if (typeof obj_priceDetails !== 'string') {
|
|
504
|
+
return new TypeError('Expected "string" but received "' + typeof obj_priceDetails + '" (at "' + path_priceDetails + '")');
|
|
505
|
+
}
|
|
506
|
+
const obj_priceNonProfitDiscount = obj.priceNonProfitDiscount;
|
|
507
|
+
const path_priceNonProfitDiscount = path + '.priceNonProfitDiscount';
|
|
508
|
+
if (typeof obj_priceNonProfitDiscount !== 'boolean') {
|
|
509
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_priceNonProfitDiscount + '" (at "' + path_priceNonProfitDiscount + '")');
|
|
510
|
+
}
|
|
511
|
+
const obj_pricingRestrictions = obj.pricingRestrictions;
|
|
512
|
+
const path_pricingRestrictions = path + '.pricingRestrictions';
|
|
513
|
+
if (typeof obj_pricingRestrictions !== 'string') {
|
|
514
|
+
return new TypeError('Expected "string" but received "' + typeof obj_pricingRestrictions + '" (at "' + path_pricingRestrictions + '")');
|
|
515
|
+
}
|
|
516
|
+
const obj_productsRequired = obj.productsRequired;
|
|
517
|
+
const path_productsRequired = path + '.productsRequired';
|
|
518
|
+
if (!ArrayIsArray(obj_productsRequired)) {
|
|
519
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productsRequired + '" (at "' + path_productsRequired + '")');
|
|
520
|
+
}
|
|
521
|
+
for (let i = 0; i < obj_productsRequired.length; i++) {
|
|
522
|
+
const obj_productsRequired_item = obj_productsRequired[i];
|
|
523
|
+
const path_productsRequired_item = path_productsRequired + '[' + i + ']';
|
|
524
|
+
if (typeof obj_productsRequired_item !== 'string') {
|
|
525
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productsRequired_item + '" (at "' + path_productsRequired_item + '")');
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
const obj_productsSupported = obj.productsSupported;
|
|
529
|
+
const path_productsSupported = path + '.productsSupported';
|
|
530
|
+
if (!ArrayIsArray(obj_productsSupported)) {
|
|
531
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productsSupported + '" (at "' + path_productsSupported + '")');
|
|
532
|
+
}
|
|
533
|
+
for (let i = 0; i < obj_productsSupported.length; i++) {
|
|
534
|
+
const obj_productsSupported_item = obj_productsSupported[i];
|
|
535
|
+
const path_productsSupported_item = path_productsSupported + '[' + i + ']';
|
|
536
|
+
if (typeof obj_productsSupported_item !== 'string') {
|
|
537
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productsSupported_item + '" (at "' + path_productsSupported_item + '")');
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
const obj_programmingLanguages = obj.programmingLanguages;
|
|
541
|
+
const path_programmingLanguages = path + '.programmingLanguages';
|
|
542
|
+
if (!ArrayIsArray(obj_programmingLanguages)) {
|
|
543
|
+
return new TypeError('Expected "array" but received "' + typeof obj_programmingLanguages + '" (at "' + path_programmingLanguages + '")');
|
|
544
|
+
}
|
|
545
|
+
for (let i = 0; i < obj_programmingLanguages.length; i++) {
|
|
546
|
+
const obj_programmingLanguages_item = obj_programmingLanguages[i];
|
|
547
|
+
const path_programmingLanguages_item = path_programmingLanguages + '[' + i + ']';
|
|
548
|
+
if (typeof obj_programmingLanguages_item !== 'string') {
|
|
549
|
+
return new TypeError('Expected "string" but received "' + typeof obj_programmingLanguages_item + '" (at "' + path_programmingLanguages_item + '")');
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
const obj_publishLocation = obj.publishLocation;
|
|
553
|
+
const path_publishLocation = path + '.publishLocation';
|
|
554
|
+
if (typeof obj_publishLocation !== 'string') {
|
|
555
|
+
return new TypeError('Expected "string" but received "' + typeof obj_publishLocation + '" (at "' + path_publishLocation + '")');
|
|
556
|
+
}
|
|
557
|
+
const obj_publishedDate = obj.publishedDate;
|
|
558
|
+
const path_publishedDate = path + '.publishedDate';
|
|
559
|
+
if (typeof obj_publishedDate !== 'string') {
|
|
560
|
+
return new TypeError('Expected "string" but received "' + typeof obj_publishedDate + '" (at "' + path_publishedDate + '")');
|
|
561
|
+
}
|
|
562
|
+
const obj_recordType = obj.recordType;
|
|
563
|
+
const path_recordType = path + '.recordType';
|
|
564
|
+
if (typeof obj_recordType !== 'string') {
|
|
565
|
+
return new TypeError('Expected "string" but received "' + typeof obj_recordType + '" (at "' + path_recordType + '")');
|
|
566
|
+
}
|
|
567
|
+
const obj_requiresPaidService = obj.requiresPaidService;
|
|
568
|
+
const path_requiresPaidService = path + '.requiresPaidService';
|
|
569
|
+
if (typeof obj_requiresPaidService !== 'boolean') {
|
|
570
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_requiresPaidService + '" (at "' + path_requiresPaidService + '")');
|
|
571
|
+
}
|
|
572
|
+
const obj_salesEmail = obj.salesEmail;
|
|
573
|
+
const path_salesEmail = path + '.salesEmail';
|
|
574
|
+
if (typeof obj_salesEmail !== 'string') {
|
|
575
|
+
return new TypeError('Expected "string" but received "' + typeof obj_salesEmail + '" (at "' + path_salesEmail + '")');
|
|
576
|
+
}
|
|
577
|
+
const obj_salesPhone = obj.salesPhone;
|
|
578
|
+
const path_salesPhone = path + '.salesPhone';
|
|
579
|
+
if (typeof obj_salesPhone !== 'string') {
|
|
580
|
+
return new TypeError('Expected "string" but received "' + typeof obj_salesPhone + '" (at "' + path_salesPhone + '")');
|
|
581
|
+
}
|
|
582
|
+
const obj_salesWebsite = obj.salesWebsite;
|
|
583
|
+
const path_salesWebsite = path + '.salesWebsite';
|
|
584
|
+
if (typeof obj_salesWebsite !== 'string') {
|
|
585
|
+
return new TypeError('Expected "string" but received "' + typeof obj_salesWebsite + '" (at "' + path_salesWebsite + '")');
|
|
586
|
+
}
|
|
587
|
+
const obj_searchBlurb = obj.searchBlurb;
|
|
588
|
+
const path_searchBlurb = path + '.searchBlurb';
|
|
589
|
+
if (typeof obj_searchBlurb !== 'string') {
|
|
590
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchBlurb + '" (at "' + path_searchBlurb + '")');
|
|
591
|
+
}
|
|
592
|
+
const obj_securityReviewStatus = obj.securityReviewStatus;
|
|
593
|
+
const path_securityReviewStatus = path + '.securityReviewStatus';
|
|
594
|
+
if (typeof obj_securityReviewStatus !== 'string') {
|
|
595
|
+
return new TypeError('Expected "string" but received "' + typeof obj_securityReviewStatus + '" (at "' + path_securityReviewStatus + '")');
|
|
596
|
+
}
|
|
597
|
+
const obj_selfAttestation = obj.selfAttestation;
|
|
598
|
+
const path_selfAttestation = path + '.selfAttestation';
|
|
599
|
+
if (typeof obj_selfAttestation !== 'boolean') {
|
|
600
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_selfAttestation + '" (at "' + path_selfAttestation + '")');
|
|
601
|
+
}
|
|
602
|
+
const obj_selfAttestationDate = obj.selfAttestationDate;
|
|
603
|
+
const path_selfAttestationDate = path + '.selfAttestationDate';
|
|
604
|
+
if (typeof obj_selfAttestationDate !== 'string') {
|
|
605
|
+
return new TypeError('Expected "string" but received "' + typeof obj_selfAttestationDate + '" (at "' + path_selfAttestationDate + '")');
|
|
606
|
+
}
|
|
607
|
+
obj.sepaApplicationFee;
|
|
608
|
+
const obj_status = obj.status;
|
|
609
|
+
const path_status = path + '.status';
|
|
610
|
+
if (typeof obj_status !== 'string') {
|
|
611
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
612
|
+
}
|
|
613
|
+
const obj_submissionStatus = obj.submissionStatus;
|
|
614
|
+
const path_submissionStatus = path + '.submissionStatus';
|
|
615
|
+
if (typeof obj_submissionStatus !== 'string') {
|
|
616
|
+
return new TypeError('Expected "string" but received "' + typeof obj_submissionStatus + '" (at "' + path_submissionStatus + '")');
|
|
617
|
+
}
|
|
618
|
+
const obj_supportedIndustries = obj.supportedIndustries;
|
|
619
|
+
const path_supportedIndustries = path + '.supportedIndustries';
|
|
620
|
+
if (!ArrayIsArray(obj_supportedIndustries)) {
|
|
621
|
+
return new TypeError('Expected "array" but received "' + typeof obj_supportedIndustries + '" (at "' + path_supportedIndustries + '")');
|
|
622
|
+
}
|
|
623
|
+
for (let i = 0; i < obj_supportedIndustries.length; i++) {
|
|
624
|
+
const obj_supportedIndustries_item = obj_supportedIndustries[i];
|
|
625
|
+
const path_supportedIndustries_item = path_supportedIndustries + '[' + i + ']';
|
|
626
|
+
if (typeof obj_supportedIndustries_item !== 'string') {
|
|
627
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportedIndustries_item + '" (at "' + path_supportedIndustries_item + '")');
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
const obj_systemRequirements = obj.systemRequirements;
|
|
631
|
+
const path_systemRequirements = path + '.systemRequirements';
|
|
632
|
+
if (typeof obj_systemRequirements !== 'string') {
|
|
633
|
+
return new TypeError('Expected "string" but received "' + typeof obj_systemRequirements + '" (at "' + path_systemRequirements + '")');
|
|
634
|
+
}
|
|
635
|
+
const obj_targetUserPersona = obj.targetUserPersona;
|
|
636
|
+
const path_targetUserPersona = path + '.targetUserPersona';
|
|
637
|
+
if (!ArrayIsArray(obj_targetUserPersona)) {
|
|
638
|
+
return new TypeError('Expected "array" but received "' + typeof obj_targetUserPersona + '" (at "' + path_targetUserPersona + '")');
|
|
639
|
+
}
|
|
640
|
+
for (let i = 0; i < obj_targetUserPersona.length; i++) {
|
|
641
|
+
const obj_targetUserPersona_item = obj_targetUserPersona[i];
|
|
642
|
+
const path_targetUserPersona_item = path_targetUserPersona + '[' + i + ']';
|
|
643
|
+
if (typeof obj_targetUserPersona_item !== 'string') {
|
|
644
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetUserPersona_item + '" (at "' + path_targetUserPersona_item + '")');
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
})();
|
|
648
|
+
return v_error === undefined ? null : v_error;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
function validate$y(obj, path = 'AppExchangeForceExtensionRepresentation') {
|
|
652
|
+
const v_error = (() => {
|
|
653
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
654
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
655
|
+
}
|
|
656
|
+
const obj_acceptedCheckoutAgreementDate = obj.acceptedCheckoutAgreementDate;
|
|
657
|
+
const path_acceptedCheckoutAgreementDate = path + '.acceptedCheckoutAgreementDate';
|
|
658
|
+
if (typeof obj_acceptedCheckoutAgreementDate !== 'string') {
|
|
659
|
+
return new TypeError('Expected "string" but received "' + typeof obj_acceptedCheckoutAgreementDate + '" (at "' + path_acceptedCheckoutAgreementDate + '")');
|
|
660
|
+
}
|
|
661
|
+
const obj_acceptedFreeAgreementDate = obj.acceptedFreeAgreementDate;
|
|
662
|
+
const path_acceptedFreeAgreementDate = path + '.acceptedFreeAgreementDate';
|
|
663
|
+
if (typeof obj_acceptedFreeAgreementDate !== 'string') {
|
|
664
|
+
return new TypeError('Expected "string" but received "' + typeof obj_acceptedFreeAgreementDate + '" (at "' + path_acceptedFreeAgreementDate + '")');
|
|
665
|
+
}
|
|
666
|
+
const obj_acceptedFreeAppsAgreement = obj.acceptedFreeAppsAgreement;
|
|
667
|
+
const path_acceptedFreeAppsAgreement = path + '.acceptedFreeAppsAgreement';
|
|
668
|
+
if (typeof obj_acceptedFreeAppsAgreement !== 'boolean') {
|
|
669
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_acceptedFreeAppsAgreement + '" (at "' + path_acceptedFreeAppsAgreement + '")');
|
|
670
|
+
}
|
|
671
|
+
const obj_acceptedPaidAppsAgreementDate = obj.acceptedPaidAppsAgreementDate;
|
|
672
|
+
const path_acceptedPaidAppsAgreementDate = path + '.acceptedPaidAppsAgreementDate';
|
|
673
|
+
if (typeof obj_acceptedPaidAppsAgreementDate !== 'string') {
|
|
674
|
+
return new TypeError('Expected "string" but received "' + typeof obj_acceptedPaidAppsAgreementDate + '" (at "' + path_acceptedPaidAppsAgreementDate + '")');
|
|
675
|
+
}
|
|
676
|
+
const obj_accessibleSolutionURL = obj.accessibleSolutionURL;
|
|
677
|
+
const path_accessibleSolutionURL = path + '.accessibleSolutionURL';
|
|
678
|
+
if (typeof obj_accessibleSolutionURL !== 'string') {
|
|
679
|
+
return new TypeError('Expected "string" but received "' + typeof obj_accessibleSolutionURL + '" (at "' + path_accessibleSolutionURL + '")');
|
|
680
|
+
}
|
|
681
|
+
const obj_achApplicationFee = obj.achApplicationFee;
|
|
682
|
+
const path_achApplicationFee = path + '.achApplicationFee';
|
|
683
|
+
if (typeof obj_achApplicationFee !== 'string') {
|
|
684
|
+
return new TypeError('Expected "string" but received "' + typeof obj_achApplicationFee + '" (at "' + path_achApplicationFee + '")');
|
|
685
|
+
}
|
|
686
|
+
const obj_allowACHPayment = obj.allowACHPayment;
|
|
687
|
+
const path_allowACHPayment = path + '.allowACHPayment';
|
|
688
|
+
if (typeof obj_allowACHPayment !== 'boolean') {
|
|
689
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_allowACHPayment + '" (at "' + path_allowACHPayment + '")');
|
|
690
|
+
}
|
|
691
|
+
const obj_allowCCPayment = obj.allowCCPayment;
|
|
692
|
+
const path_allowCCPayment = path + '.allowCCPayment';
|
|
693
|
+
if (typeof obj_allowCCPayment !== 'boolean') {
|
|
694
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_allowCCPayment + '" (at "' + path_allowCCPayment + '")');
|
|
695
|
+
}
|
|
696
|
+
const obj_allowSEPAPayment = obj.allowSEPAPayment;
|
|
697
|
+
const path_allowSEPAPayment = path + '.allowSEPAPayment';
|
|
698
|
+
if (typeof obj_allowSEPAPayment !== 'boolean') {
|
|
699
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_allowSEPAPayment + '" (at "' + path_allowSEPAPayment + '")');
|
|
700
|
+
}
|
|
701
|
+
const obj_appType = obj.appType;
|
|
702
|
+
const path_appType = path + '.appType';
|
|
703
|
+
if (typeof obj_appType !== 'string') {
|
|
704
|
+
return new TypeError('Expected "string" but received "' + typeof obj_appType + '" (at "' + path_appType + '")');
|
|
705
|
+
}
|
|
706
|
+
const obj_approvedDate = obj.approvedDate;
|
|
707
|
+
const path_approvedDate = path + '.approvedDate';
|
|
708
|
+
if (typeof obj_approvedDate !== 'string') {
|
|
709
|
+
return new TypeError('Expected "string" but received "' + typeof obj_approvedDate + '" (at "' + path_approvedDate + '")');
|
|
710
|
+
}
|
|
711
|
+
const obj_businessApproval = obj.businessApproval;
|
|
712
|
+
const path_businessApproval = path + '.businessApproval';
|
|
713
|
+
if (typeof obj_businessApproval !== 'string') {
|
|
714
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessApproval + '" (at "' + path_businessApproval + '")');
|
|
715
|
+
}
|
|
716
|
+
const obj_businessQuestionnaireSubmittedOn = obj.businessQuestionnaireSubmittedOn;
|
|
717
|
+
const path_businessQuestionnaireSubmittedOn = path + '.businessQuestionnaireSubmittedOn';
|
|
718
|
+
if (typeof obj_businessQuestionnaireSubmittedOn !== 'string') {
|
|
719
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessQuestionnaireSubmittedOn + '" (at "' + path_businessQuestionnaireSubmittedOn + '")');
|
|
720
|
+
}
|
|
721
|
+
const obj_businessRejectionComment = obj.businessRejectionComment;
|
|
722
|
+
const path_businessRejectionComment = path + '.businessRejectionComment';
|
|
723
|
+
if (typeof obj_businessRejectionComment !== 'string') {
|
|
724
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessRejectionComment + '" (at "' + path_businessRejectionComment + '")');
|
|
725
|
+
}
|
|
726
|
+
const obj_categories = obj.categories;
|
|
727
|
+
const path_categories = path + '.categories';
|
|
728
|
+
if (typeof obj_categories !== 'string') {
|
|
729
|
+
return new TypeError('Expected "string" but received "' + typeof obj_categories + '" (at "' + path_categories + '")');
|
|
730
|
+
}
|
|
731
|
+
const obj_categoriesToFeeds = obj.categoriesToFeeds;
|
|
732
|
+
const path_categoriesToFeeds = path + '.categoriesToFeeds';
|
|
733
|
+
if (typeof obj_categoriesToFeeds !== 'string') {
|
|
734
|
+
return new TypeError('Expected "string" but received "' + typeof obj_categoriesToFeeds + '" (at "' + path_categoriesToFeeds + '")');
|
|
735
|
+
}
|
|
736
|
+
const obj_checkoutEnabledDate = obj.checkoutEnabledDate;
|
|
737
|
+
const path_checkoutEnabledDate = path + '.checkoutEnabledDate';
|
|
738
|
+
if (typeof obj_checkoutEnabledDate !== 'string') {
|
|
739
|
+
return new TypeError('Expected "string" but received "' + typeof obj_checkoutEnabledDate + '" (at "' + path_checkoutEnabledDate + '")');
|
|
740
|
+
}
|
|
741
|
+
const obj_collectPaymentBeforeInstall = obj.collectPaymentBeforeInstall;
|
|
742
|
+
const path_collectPaymentBeforeInstall = path + '.collectPaymentBeforeInstall';
|
|
743
|
+
if (typeof obj_collectPaymentBeforeInstall !== 'boolean') {
|
|
744
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_collectPaymentBeforeInstall + '" (at "' + path_collectPaymentBeforeInstall + '")');
|
|
745
|
+
}
|
|
746
|
+
const obj_contractStatus = obj.contractStatus;
|
|
747
|
+
const path_contractStatus = path + '.contractStatus';
|
|
748
|
+
if (typeof obj_contractStatus !== 'string') {
|
|
749
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contractStatus + '" (at "' + path_contractStatus + '")');
|
|
750
|
+
}
|
|
751
|
+
const obj_contractType = obj.contractType;
|
|
752
|
+
const path_contractType = path + '.contractType';
|
|
753
|
+
if (typeof obj_contractType !== 'string') {
|
|
754
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contractType + '" (at "' + path_contractType + '")');
|
|
755
|
+
}
|
|
756
|
+
const obj_createdByOrgID = obj.createdByOrgID;
|
|
757
|
+
const path_createdByOrgID = path + '.createdByOrgID';
|
|
758
|
+
if (typeof obj_createdByOrgID !== 'string') {
|
|
759
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdByOrgID + '" (at "' + path_createdByOrgID + '")');
|
|
760
|
+
}
|
|
761
|
+
const obj_creditorIdentifier = obj.creditorIdentifier;
|
|
762
|
+
const path_creditorIdentifier = path + '.creditorIdentifier';
|
|
763
|
+
if (typeof obj_creditorIdentifier !== 'string') {
|
|
764
|
+
return new TypeError('Expected "string" but received "' + typeof obj_creditorIdentifier + '" (at "' + path_creditorIdentifier + '")');
|
|
765
|
+
}
|
|
766
|
+
const obj_curatedListing1 = obj.curatedListing1;
|
|
767
|
+
const path_curatedListing1 = path + '.curatedListing1';
|
|
768
|
+
if (typeof obj_curatedListing1 !== 'string') {
|
|
769
|
+
return new TypeError('Expected "string" but received "' + typeof obj_curatedListing1 + '" (at "' + path_curatedListing1 + '")');
|
|
770
|
+
}
|
|
771
|
+
const obj_curatedListing2 = obj.curatedListing2;
|
|
772
|
+
const path_curatedListing2 = path + '.curatedListing2';
|
|
773
|
+
if (typeof obj_curatedListing2 !== 'string') {
|
|
774
|
+
return new TypeError('Expected "string" but received "' + typeof obj_curatedListing2 + '" (at "' + path_curatedListing2 + '")');
|
|
775
|
+
}
|
|
776
|
+
const obj_curatedListing3 = obj.curatedListing3;
|
|
777
|
+
const path_curatedListing3 = path + '.curatedListing3';
|
|
778
|
+
if (typeof obj_curatedListing3 !== 'string') {
|
|
779
|
+
return new TypeError('Expected "string" but received "' + typeof obj_curatedListing3 + '" (at "' + path_curatedListing3 + '")');
|
|
780
|
+
}
|
|
781
|
+
const obj_curatedListing4 = obj.curatedListing4;
|
|
782
|
+
const path_curatedListing4 = path + '.curatedListing4';
|
|
783
|
+
if (typeof obj_curatedListing4 !== 'string') {
|
|
784
|
+
return new TypeError('Expected "string" but received "' + typeof obj_curatedListing4 + '" (at "' + path_curatedListing4 + '")');
|
|
785
|
+
}
|
|
786
|
+
const obj_curatedListing5 = obj.curatedListing5;
|
|
787
|
+
const path_curatedListing5 = path + '.curatedListing5';
|
|
788
|
+
if (typeof obj_curatedListing5 !== 'string') {
|
|
789
|
+
return new TypeError('Expected "string" but received "' + typeof obj_curatedListing5 + '" (at "' + path_curatedListing5 + '")');
|
|
790
|
+
}
|
|
791
|
+
const obj_deleteReason = obj.deleteReason;
|
|
792
|
+
const path_deleteReason = path + '.deleteReason';
|
|
793
|
+
if (typeof obj_deleteReason !== 'string') {
|
|
794
|
+
return new TypeError('Expected "string" but received "' + typeof obj_deleteReason + '" (at "' + path_deleteReason + '")');
|
|
795
|
+
}
|
|
796
|
+
const obj_delistedDate = obj.delistedDate;
|
|
797
|
+
const path_delistedDate = path + '.delistedDate';
|
|
798
|
+
if (typeof obj_delistedDate !== 'string') {
|
|
799
|
+
return new TypeError('Expected "string" but received "' + typeof obj_delistedDate + '" (at "' + path_delistedDate + '")');
|
|
800
|
+
}
|
|
801
|
+
const obj_delistedReason = obj.delistedReason;
|
|
802
|
+
const path_delistedReason = path + '.delistedReason';
|
|
803
|
+
if (typeof obj_delistedReason !== 'string') {
|
|
804
|
+
return new TypeError('Expected "string" but received "' + typeof obj_delistedReason + '" (at "' + path_delistedReason + '")');
|
|
805
|
+
}
|
|
806
|
+
const obj_devices = obj.devices;
|
|
807
|
+
const path_devices = path + '.devices';
|
|
808
|
+
if (!ArrayIsArray(obj_devices)) {
|
|
809
|
+
return new TypeError('Expected "array" but received "' + typeof obj_devices + '" (at "' + path_devices + '")');
|
|
810
|
+
}
|
|
811
|
+
for (let i = 0; i < obj_devices.length; i++) {
|
|
812
|
+
const obj_devices_item = obj_devices[i];
|
|
813
|
+
const path_devices_item = path_devices + '[' + i + ']';
|
|
814
|
+
if (typeof obj_devices_item !== 'string') {
|
|
815
|
+
return new TypeError('Expected "string" but received "' + typeof obj_devices_item + '" (at "' + path_devices_item + '")');
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
const obj_directoryEntryID = obj.directoryEntryID;
|
|
819
|
+
const path_directoryEntryID = path + '.directoryEntryID';
|
|
820
|
+
if (typeof obj_directoryEntryID !== 'string') {
|
|
821
|
+
return new TypeError('Expected "string" but received "' + typeof obj_directoryEntryID + '" (at "' + path_directoryEntryID + '")');
|
|
822
|
+
}
|
|
823
|
+
const obj_displayHover = obj.displayHover;
|
|
824
|
+
const path_displayHover = path + '.displayHover';
|
|
825
|
+
if (typeof obj_displayHover !== 'boolean') {
|
|
826
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_displayHover + '" (at "' + path_displayHover + '")');
|
|
827
|
+
}
|
|
828
|
+
const obj_diverseOwnedBusinessURL = obj.diverseOwnedBusinessURL;
|
|
829
|
+
const path_diverseOwnedBusinessURL = path + '.diverseOwnedBusinessURL';
|
|
830
|
+
if (typeof obj_diverseOwnedBusinessURL !== 'string') {
|
|
831
|
+
return new TypeError('Expected "string" but received "' + typeof obj_diverseOwnedBusinessURL + '" (at "' + path_diverseOwnedBusinessURL + '")');
|
|
832
|
+
}
|
|
833
|
+
const obj_editions = obj.editions;
|
|
834
|
+
const path_editions = path + '.editions';
|
|
835
|
+
if (!ArrayIsArray(obj_editions)) {
|
|
836
|
+
return new TypeError('Expected "array" but received "' + typeof obj_editions + '" (at "' + path_editions + '")');
|
|
837
|
+
}
|
|
838
|
+
for (let i = 0; i < obj_editions.length; i++) {
|
|
839
|
+
const obj_editions_item = obj_editions[i];
|
|
840
|
+
const path_editions_item = path_editions + '[' + i + ']';
|
|
841
|
+
if (typeof obj_editions_item !== 'string') {
|
|
842
|
+
return new TypeError('Expected "string" but received "' + typeof obj_editions_item + '" (at "' + path_editions_item + '")');
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
const obj_featured = obj.featured;
|
|
846
|
+
const path_featured = path + '.featured';
|
|
847
|
+
if (typeof obj_featured !== 'boolean') {
|
|
848
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_featured + '" (at "' + path_featured + '")');
|
|
849
|
+
}
|
|
850
|
+
const obj_filledDateTime = obj.filledDateTime;
|
|
851
|
+
const path_filledDateTime = path + '.filledDateTime';
|
|
852
|
+
if (typeof obj_filledDateTime !== 'string') {
|
|
853
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filledDateTime + '" (at "' + path_filledDateTime + '")');
|
|
854
|
+
}
|
|
855
|
+
const obj_highlights = obj.highlights;
|
|
856
|
+
const path_highlights = path + '.highlights';
|
|
857
|
+
if (!ArrayIsArray(obj_highlights)) {
|
|
858
|
+
return new TypeError('Expected "array" but received "' + typeof obj_highlights + '" (at "' + path_highlights + '")');
|
|
859
|
+
}
|
|
860
|
+
for (let i = 0; i < obj_highlights.length; i++) {
|
|
861
|
+
const obj_highlights_item = obj_highlights[i];
|
|
862
|
+
const path_highlights_item = path_highlights + '[' + i + ']';
|
|
863
|
+
if (typeof obj_highlights_item !== 'string') {
|
|
864
|
+
return new TypeError('Expected "string" but received "' + typeof obj_highlights_item + '" (at "' + path_highlights_item + '")');
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
const obj_industries = obj.industries;
|
|
868
|
+
const path_industries = path + '.industries';
|
|
869
|
+
if (!ArrayIsArray(obj_industries)) {
|
|
870
|
+
return new TypeError('Expected "array" but received "' + typeof obj_industries + '" (at "' + path_industries + '")');
|
|
871
|
+
}
|
|
872
|
+
for (let i = 0; i < obj_industries.length; i++) {
|
|
873
|
+
const obj_industries_item = obj_industries[i];
|
|
874
|
+
const path_industries_item = path_industries + '[' + i + ']';
|
|
875
|
+
if (typeof obj_industries_item !== 'string') {
|
|
876
|
+
return new TypeError('Expected "string" but received "' + typeof obj_industries_item + '" (at "' + path_industries_item + '")');
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
const obj_installationAgreement = obj.installationAgreement;
|
|
880
|
+
const path_installationAgreement = path + '.installationAgreement';
|
|
881
|
+
if (typeof obj_installationAgreement !== 'string') {
|
|
882
|
+
return new TypeError('Expected "string" but received "' + typeof obj_installationAgreement + '" (at "' + path_installationAgreement + '")');
|
|
883
|
+
}
|
|
884
|
+
const obj_isAccessibleSolution = obj.isAccessibleSolution;
|
|
885
|
+
const path_isAccessibleSolution = path + '.isAccessibleSolution';
|
|
886
|
+
if (typeof obj_isAccessibleSolution !== 'boolean') {
|
|
887
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAccessibleSolution + '" (at "' + path_isAccessibleSolution + '")');
|
|
888
|
+
}
|
|
889
|
+
const obj_isDiverseOwnedBusiness = obj.isDiverseOwnedBusiness;
|
|
890
|
+
const path_isDiverseOwnedBusiness = path + '.isDiverseOwnedBusiness';
|
|
891
|
+
if (typeof obj_isDiverseOwnedBusiness !== 'boolean') {
|
|
892
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDiverseOwnedBusiness + '" (at "' + path_isDiverseOwnedBusiness + '")');
|
|
893
|
+
}
|
|
894
|
+
const obj_isEinsteinAgent = obj.isEinsteinAgent;
|
|
895
|
+
const path_isEinsteinAgent = path + '.isEinsteinAgent';
|
|
896
|
+
if (typeof obj_isEinsteinAgent !== 'boolean') {
|
|
897
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isEinsteinAgent + '" (at "' + path_isEinsteinAgent + '")');
|
|
898
|
+
}
|
|
899
|
+
const obj_isFRampOffering = obj.isFRampOffering;
|
|
900
|
+
const path_isFRampOffering = path + '.isFRampOffering';
|
|
901
|
+
if (typeof obj_isFRampOffering !== 'boolean') {
|
|
902
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFRampOffering + '" (at "' + path_isFRampOffering + '")');
|
|
903
|
+
}
|
|
904
|
+
const obj_isFree = obj.isFree;
|
|
905
|
+
const path_isFree = path + '.isFree';
|
|
906
|
+
if (typeof obj_isFree !== 'boolean') {
|
|
907
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFree + '" (at "' + path_isFree + '")');
|
|
908
|
+
}
|
|
909
|
+
const obj_isFreemium = obj.isFreemium;
|
|
910
|
+
const path_isFreemium = path + '.isFreemium';
|
|
911
|
+
if (typeof obj_isFreemium !== 'boolean') {
|
|
912
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFreemium + '" (at "' + path_isFreemium + '")');
|
|
913
|
+
}
|
|
914
|
+
const obj_isHIPAACompliant = obj.isHIPAACompliant;
|
|
915
|
+
const path_isHIPAACompliant = path + '.isHIPAACompliant';
|
|
916
|
+
if (typeof obj_isHIPAACompliant !== 'boolean') {
|
|
917
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isHIPAACompliant + '" (at "' + path_isHIPAACompliant + '")');
|
|
918
|
+
}
|
|
919
|
+
const obj_isLightningAppBuilder = obj.isLightningAppBuilder;
|
|
920
|
+
const path_isLightningAppBuilder = path + '.isLightningAppBuilder';
|
|
921
|
+
if (typeof obj_isLightningAppBuilder !== 'boolean') {
|
|
922
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isLightningAppBuilder + '" (at "' + path_isLightningAppBuilder + '")');
|
|
923
|
+
}
|
|
924
|
+
const obj_isLightningComponent = obj.isLightningComponent;
|
|
925
|
+
const path_isLightningComponent = path + '.isLightningComponent';
|
|
926
|
+
if (typeof obj_isLightningComponent !== 'boolean') {
|
|
927
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isLightningComponent + '" (at "' + path_isLightningComponent + '")');
|
|
928
|
+
}
|
|
929
|
+
const obj_isLightningReady = obj.isLightningReady;
|
|
930
|
+
const path_isLightningReady = path + '.isLightningReady';
|
|
931
|
+
if (typeof obj_isLightningReady !== 'boolean') {
|
|
932
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isLightningReady + '" (at "' + path_isLightningReady + '")');
|
|
933
|
+
}
|
|
934
|
+
const obj_isMarketingCloud = obj.isMarketingCloud;
|
|
935
|
+
const path_isMarketingCloud = path + '.isMarketingCloud';
|
|
936
|
+
if (typeof obj_isMarketingCloud !== 'boolean') {
|
|
937
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMarketingCloud + '" (at "' + path_isMarketingCloud + '")');
|
|
938
|
+
}
|
|
939
|
+
const obj_isMinorityOwned = obj.isMinorityOwned;
|
|
940
|
+
const path_isMinorityOwned = path + '.isMinorityOwned';
|
|
941
|
+
if (typeof obj_isMinorityOwned !== 'boolean') {
|
|
942
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMinorityOwned + '" (at "' + path_isMinorityOwned + '")');
|
|
943
|
+
}
|
|
944
|
+
const obj_isMultiCurrency = obj.isMultiCurrency;
|
|
945
|
+
const path_isMultiCurrency = path + '.isMultiCurrency';
|
|
946
|
+
if (typeof obj_isMultiCurrency !== 'boolean') {
|
|
947
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMultiCurrency + '" (at "' + path_isMultiCurrency + '")');
|
|
948
|
+
}
|
|
949
|
+
const obj_isPersonAccounts = obj.isPersonAccounts;
|
|
950
|
+
const path_isPersonAccounts = path + '.isPersonAccounts';
|
|
951
|
+
if (typeof obj_isPersonAccounts !== 'boolean') {
|
|
952
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPersonAccounts + '" (at "' + path_isPersonAccounts + '")');
|
|
953
|
+
}
|
|
954
|
+
const obj_isPledge1Percent = obj.isPledge1Percent;
|
|
955
|
+
const path_isPledge1Percent = path + '.isPledge1Percent';
|
|
956
|
+
if (typeof obj_isPledge1Percent !== 'boolean') {
|
|
957
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPledge1Percent + '" (at "' + path_isPledge1Percent + '")');
|
|
958
|
+
}
|
|
959
|
+
const obj_isPublic = obj.isPublic;
|
|
960
|
+
const path_isPublic = path + '.isPublic';
|
|
961
|
+
if (typeof obj_isPublic !== 'boolean') {
|
|
962
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPublic + '" (at "' + path_isPublic + '")');
|
|
963
|
+
}
|
|
964
|
+
const obj_isSalesProgram = obj.isSalesProgram;
|
|
965
|
+
const path_isSalesProgram = path + '.isSalesProgram';
|
|
966
|
+
if (typeof obj_isSalesProgram !== 'boolean') {
|
|
967
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSalesProgram + '" (at "' + path_isSalesProgram + '")');
|
|
968
|
+
}
|
|
969
|
+
const obj_isSalesforce1Mobile = obj.isSalesforce1Mobile;
|
|
970
|
+
const path_isSalesforce1Mobile = path + '.isSalesforce1Mobile';
|
|
971
|
+
if (typeof obj_isSalesforce1Mobile !== 'boolean') {
|
|
972
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSalesforce1Mobile + '" (at "' + path_isSalesforce1Mobile + '")');
|
|
973
|
+
}
|
|
974
|
+
const obj_isSalesforceShield = obj.isSalesforceShield;
|
|
975
|
+
const path_isSalesforceShield = path + '.isSalesforceShield';
|
|
976
|
+
if (typeof obj_isSalesforceShield !== 'boolean') {
|
|
977
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSalesforceShield + '" (at "' + path_isSalesforceShield + '")');
|
|
978
|
+
}
|
|
979
|
+
const obj_languages = obj.languages;
|
|
980
|
+
const path_languages = path + '.languages';
|
|
981
|
+
if (!ArrayIsArray(obj_languages)) {
|
|
982
|
+
return new TypeError('Expected "array" but received "' + typeof obj_languages + '" (at "' + path_languages + '")');
|
|
983
|
+
}
|
|
984
|
+
for (let i = 0; i < obj_languages.length; i++) {
|
|
985
|
+
const obj_languages_item = obj_languages[i];
|
|
986
|
+
const path_languages_item = path_languages + '[' + i + ']';
|
|
987
|
+
if (typeof obj_languages_item !== 'string') {
|
|
988
|
+
return new TypeError('Expected "string" but received "' + typeof obj_languages_item + '" (at "' + path_languages_item + '")');
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
const obj_lastStatusChangeDateTime = obj.lastStatusChangeDateTime;
|
|
992
|
+
const path_lastStatusChangeDateTime = path + '.lastStatusChangeDateTime';
|
|
993
|
+
if (typeof obj_lastStatusChangeDateTime !== 'string') {
|
|
994
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastStatusChangeDateTime + '" (at "' + path_lastStatusChangeDateTime + '")');
|
|
995
|
+
}
|
|
996
|
+
const obj_learnMoreURL = obj.learnMoreURL;
|
|
997
|
+
const path_learnMoreURL = path + '.learnMoreURL';
|
|
998
|
+
if (typeof obj_learnMoreURL !== 'string') {
|
|
999
|
+
return new TypeError('Expected "string" but received "' + typeof obj_learnMoreURL + '" (at "' + path_learnMoreURL + '")');
|
|
1000
|
+
}
|
|
1001
|
+
const obj_licenseAgreement = obj.licenseAgreement;
|
|
1002
|
+
const path_licenseAgreement = path + '.licenseAgreement';
|
|
1003
|
+
if (typeof obj_licenseAgreement !== 'string') {
|
|
1004
|
+
return new TypeError('Expected "string" but received "' + typeof obj_licenseAgreement + '" (at "' + path_licenseAgreement + '")');
|
|
1005
|
+
}
|
|
1006
|
+
const obj_listingCategories = obj.listingCategories;
|
|
1007
|
+
const path_listingCategories = path + '.listingCategories';
|
|
1008
|
+
if (!ArrayIsArray(obj_listingCategories)) {
|
|
1009
|
+
return new TypeError('Expected "array" but received "' + typeof obj_listingCategories + '" (at "' + path_listingCategories + '")');
|
|
1010
|
+
}
|
|
1011
|
+
for (let i = 0; i < obj_listingCategories.length; i++) {
|
|
1012
|
+
const obj_listingCategories_item = obj_listingCategories[i];
|
|
1013
|
+
const path_listingCategories_item = path_listingCategories + '[' + i + ']';
|
|
1014
|
+
if (typeof obj_listingCategories_item !== 'string') {
|
|
1015
|
+
return new TypeError('Expected "string" but received "' + typeof obj_listingCategories_item + '" (at "' + path_listingCategories_item + '")');
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
const obj_listingUrl = obj.listingUrl;
|
|
1019
|
+
const path_listingUrl = path + '.listingUrl';
|
|
1020
|
+
if (typeof obj_listingUrl !== 'string') {
|
|
1021
|
+
return new TypeError('Expected "string" but received "' + typeof obj_listingUrl + '" (at "' + path_listingUrl + '")');
|
|
1022
|
+
}
|
|
1023
|
+
const obj_longDescription = obj.longDescription;
|
|
1024
|
+
const path_longDescription = path + '.longDescription';
|
|
1025
|
+
if (typeof obj_longDescription !== 'string') {
|
|
1026
|
+
return new TypeError('Expected "string" but received "' + typeof obj_longDescription + '" (at "' + path_longDescription + '")');
|
|
1027
|
+
}
|
|
1028
|
+
const obj_marketplace = obj.marketplace;
|
|
1029
|
+
const path_marketplace = path + '.marketplace';
|
|
1030
|
+
if (typeof obj_marketplace !== 'string') {
|
|
1031
|
+
return new TypeError('Expected "string" but received "' + typeof obj_marketplace + '" (at "' + path_marketplace + '")');
|
|
1032
|
+
}
|
|
1033
|
+
const obj_orderInSetup = obj.orderInSetup;
|
|
1034
|
+
const path_orderInSetup = path + '.orderInSetup';
|
|
1035
|
+
if (typeof obj_orderInSetup !== 'number' || (typeof obj_orderInSetup === 'number' && Math.floor(obj_orderInSetup) !== obj_orderInSetup)) {
|
|
1036
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_orderInSetup + '" (at "' + path_orderInSetup + '")');
|
|
1037
|
+
}
|
|
1038
|
+
const obj_org62ApplicationId = obj.org62ApplicationId;
|
|
1039
|
+
const path_org62ApplicationId = path + '.org62ApplicationId';
|
|
1040
|
+
if (typeof obj_org62ApplicationId !== 'string') {
|
|
1041
|
+
return new TypeError('Expected "string" but received "' + typeof obj_org62ApplicationId + '" (at "' + path_org62ApplicationId + '")');
|
|
1042
|
+
}
|
|
1043
|
+
const obj_priceDetails = obj.priceDetails;
|
|
1044
|
+
const path_priceDetails = path + '.priceDetails';
|
|
1045
|
+
if (typeof obj_priceDetails !== 'string') {
|
|
1046
|
+
return new TypeError('Expected "string" but received "' + typeof obj_priceDetails + '" (at "' + path_priceDetails + '")');
|
|
1047
|
+
}
|
|
1048
|
+
const obj_priceNonProfitDiscount = obj.priceNonProfitDiscount;
|
|
1049
|
+
const path_priceNonProfitDiscount = path + '.priceNonProfitDiscount';
|
|
1050
|
+
if (typeof obj_priceNonProfitDiscount !== 'boolean') {
|
|
1051
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_priceNonProfitDiscount + '" (at "' + path_priceNonProfitDiscount + '")');
|
|
1052
|
+
}
|
|
1053
|
+
const obj_pricingRestrictions = obj.pricingRestrictions;
|
|
1054
|
+
const path_pricingRestrictions = path + '.pricingRestrictions';
|
|
1055
|
+
if (typeof obj_pricingRestrictions !== 'string') {
|
|
1056
|
+
return new TypeError('Expected "string" but received "' + typeof obj_pricingRestrictions + '" (at "' + path_pricingRestrictions + '")');
|
|
1057
|
+
}
|
|
1058
|
+
const obj_productsRequired = obj.productsRequired;
|
|
1059
|
+
const path_productsRequired = path + '.productsRequired';
|
|
1060
|
+
if (!ArrayIsArray(obj_productsRequired)) {
|
|
1061
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productsRequired + '" (at "' + path_productsRequired + '")');
|
|
1062
|
+
}
|
|
1063
|
+
for (let i = 0; i < obj_productsRequired.length; i++) {
|
|
1064
|
+
const obj_productsRequired_item = obj_productsRequired[i];
|
|
1065
|
+
const path_productsRequired_item = path_productsRequired + '[' + i + ']';
|
|
1066
|
+
if (typeof obj_productsRequired_item !== 'string') {
|
|
1067
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productsRequired_item + '" (at "' + path_productsRequired_item + '")');
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
const obj_productsSupported = obj.productsSupported;
|
|
1071
|
+
const path_productsSupported = path + '.productsSupported';
|
|
1072
|
+
if (!ArrayIsArray(obj_productsSupported)) {
|
|
1073
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productsSupported + '" (at "' + path_productsSupported + '")');
|
|
1074
|
+
}
|
|
1075
|
+
for (let i = 0; i < obj_productsSupported.length; i++) {
|
|
1076
|
+
const obj_productsSupported_item = obj_productsSupported[i];
|
|
1077
|
+
const path_productsSupported_item = path_productsSupported + '[' + i + ']';
|
|
1078
|
+
if (typeof obj_productsSupported_item !== 'string') {
|
|
1079
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productsSupported_item + '" (at "' + path_productsSupported_item + '")');
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
const obj_programmingLanguages = obj.programmingLanguages;
|
|
1083
|
+
const path_programmingLanguages = path + '.programmingLanguages';
|
|
1084
|
+
if (!ArrayIsArray(obj_programmingLanguages)) {
|
|
1085
|
+
return new TypeError('Expected "array" but received "' + typeof obj_programmingLanguages + '" (at "' + path_programmingLanguages + '")');
|
|
1086
|
+
}
|
|
1087
|
+
for (let i = 0; i < obj_programmingLanguages.length; i++) {
|
|
1088
|
+
const obj_programmingLanguages_item = obj_programmingLanguages[i];
|
|
1089
|
+
const path_programmingLanguages_item = path_programmingLanguages + '[' + i + ']';
|
|
1090
|
+
if (typeof obj_programmingLanguages_item !== 'string') {
|
|
1091
|
+
return new TypeError('Expected "string" but received "' + typeof obj_programmingLanguages_item + '" (at "' + path_programmingLanguages_item + '")');
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
const obj_publishLocation = obj.publishLocation;
|
|
1095
|
+
const path_publishLocation = path + '.publishLocation';
|
|
1096
|
+
if (typeof obj_publishLocation !== 'string') {
|
|
1097
|
+
return new TypeError('Expected "string" but received "' + typeof obj_publishLocation + '" (at "' + path_publishLocation + '")');
|
|
1098
|
+
}
|
|
1099
|
+
const obj_publishedDate = obj.publishedDate;
|
|
1100
|
+
const path_publishedDate = path + '.publishedDate';
|
|
1101
|
+
if (typeof obj_publishedDate !== 'string') {
|
|
1102
|
+
return new TypeError('Expected "string" but received "' + typeof obj_publishedDate + '" (at "' + path_publishedDate + '")');
|
|
1103
|
+
}
|
|
1104
|
+
const obj_recordType = obj.recordType;
|
|
1105
|
+
const path_recordType = path + '.recordType';
|
|
1106
|
+
if (typeof obj_recordType !== 'string') {
|
|
1107
|
+
return new TypeError('Expected "string" but received "' + typeof obj_recordType + '" (at "' + path_recordType + '")');
|
|
1108
|
+
}
|
|
1109
|
+
const obj_requiresPaidService = obj.requiresPaidService;
|
|
1110
|
+
const path_requiresPaidService = path + '.requiresPaidService';
|
|
1111
|
+
if (typeof obj_requiresPaidService !== 'boolean') {
|
|
1112
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_requiresPaidService + '" (at "' + path_requiresPaidService + '")');
|
|
1113
|
+
}
|
|
1114
|
+
const obj_salesEmail = obj.salesEmail;
|
|
1115
|
+
const path_salesEmail = path + '.salesEmail';
|
|
1116
|
+
if (typeof obj_salesEmail !== 'string') {
|
|
1117
|
+
return new TypeError('Expected "string" but received "' + typeof obj_salesEmail + '" (at "' + path_salesEmail + '")');
|
|
1118
|
+
}
|
|
1119
|
+
const obj_salesPhone = obj.salesPhone;
|
|
1120
|
+
const path_salesPhone = path + '.salesPhone';
|
|
1121
|
+
if (typeof obj_salesPhone !== 'string') {
|
|
1122
|
+
return new TypeError('Expected "string" but received "' + typeof obj_salesPhone + '" (at "' + path_salesPhone + '")');
|
|
1123
|
+
}
|
|
1124
|
+
const obj_salesWebsite = obj.salesWebsite;
|
|
1125
|
+
const path_salesWebsite = path + '.salesWebsite';
|
|
1126
|
+
if (typeof obj_salesWebsite !== 'string') {
|
|
1127
|
+
return new TypeError('Expected "string" but received "' + typeof obj_salesWebsite + '" (at "' + path_salesWebsite + '")');
|
|
1128
|
+
}
|
|
1129
|
+
const obj_searchBlurb = obj.searchBlurb;
|
|
1130
|
+
const path_searchBlurb = path + '.searchBlurb';
|
|
1131
|
+
if (typeof obj_searchBlurb !== 'string') {
|
|
1132
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchBlurb + '" (at "' + path_searchBlurb + '")');
|
|
1133
|
+
}
|
|
1134
|
+
const obj_securityReviewStatus = obj.securityReviewStatus;
|
|
1135
|
+
const path_securityReviewStatus = path + '.securityReviewStatus';
|
|
1136
|
+
if (typeof obj_securityReviewStatus !== 'string') {
|
|
1137
|
+
return new TypeError('Expected "string" but received "' + typeof obj_securityReviewStatus + '" (at "' + path_securityReviewStatus + '")');
|
|
1138
|
+
}
|
|
1139
|
+
const obj_selfAttestation = obj.selfAttestation;
|
|
1140
|
+
const path_selfAttestation = path + '.selfAttestation';
|
|
1141
|
+
if (typeof obj_selfAttestation !== 'boolean') {
|
|
1142
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_selfAttestation + '" (at "' + path_selfAttestation + '")');
|
|
1143
|
+
}
|
|
1144
|
+
const obj_selfAttestationDate = obj.selfAttestationDate;
|
|
1145
|
+
const path_selfAttestationDate = path + '.selfAttestationDate';
|
|
1146
|
+
if (typeof obj_selfAttestationDate !== 'string') {
|
|
1147
|
+
return new TypeError('Expected "string" but received "' + typeof obj_selfAttestationDate + '" (at "' + path_selfAttestationDate + '")');
|
|
1148
|
+
}
|
|
1149
|
+
obj.sepaApplicationFee;
|
|
1150
|
+
const obj_status = obj.status;
|
|
1151
|
+
const path_status = path + '.status';
|
|
1152
|
+
if (typeof obj_status !== 'string') {
|
|
1153
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1154
|
+
}
|
|
1155
|
+
const obj_submissionStatus = obj.submissionStatus;
|
|
1156
|
+
const path_submissionStatus = path + '.submissionStatus';
|
|
1157
|
+
if (typeof obj_submissionStatus !== 'string') {
|
|
1158
|
+
return new TypeError('Expected "string" but received "' + typeof obj_submissionStatus + '" (at "' + path_submissionStatus + '")');
|
|
1159
|
+
}
|
|
1160
|
+
const obj_supportedIndustries = obj.supportedIndustries;
|
|
1161
|
+
const path_supportedIndustries = path + '.supportedIndustries';
|
|
1162
|
+
if (!ArrayIsArray(obj_supportedIndustries)) {
|
|
1163
|
+
return new TypeError('Expected "array" but received "' + typeof obj_supportedIndustries + '" (at "' + path_supportedIndustries + '")');
|
|
1164
|
+
}
|
|
1165
|
+
for (let i = 0; i < obj_supportedIndustries.length; i++) {
|
|
1166
|
+
const obj_supportedIndustries_item = obj_supportedIndustries[i];
|
|
1167
|
+
const path_supportedIndustries_item = path_supportedIndustries + '[' + i + ']';
|
|
1168
|
+
if (typeof obj_supportedIndustries_item !== 'string') {
|
|
1169
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportedIndustries_item + '" (at "' + path_supportedIndustries_item + '")');
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
const obj_systemRequirements = obj.systemRequirements;
|
|
1173
|
+
const path_systemRequirements = path + '.systemRequirements';
|
|
1174
|
+
if (typeof obj_systemRequirements !== 'string') {
|
|
1175
|
+
return new TypeError('Expected "string" but received "' + typeof obj_systemRequirements + '" (at "' + path_systemRequirements + '")');
|
|
1176
|
+
}
|
|
1177
|
+
const obj_targetUserPersona = obj.targetUserPersona;
|
|
1178
|
+
const path_targetUserPersona = path + '.targetUserPersona';
|
|
1179
|
+
if (!ArrayIsArray(obj_targetUserPersona)) {
|
|
1180
|
+
return new TypeError('Expected "array" but received "' + typeof obj_targetUserPersona + '" (at "' + path_targetUserPersona + '")');
|
|
1181
|
+
}
|
|
1182
|
+
for (let i = 0; i < obj_targetUserPersona.length; i++) {
|
|
1183
|
+
const obj_targetUserPersona_item = obj_targetUserPersona[i];
|
|
1184
|
+
const path_targetUserPersona_item = path_targetUserPersona + '[' + i + ']';
|
|
1185
|
+
if (typeof obj_targetUserPersona_item !== 'string') {
|
|
1186
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetUserPersona_item + '" (at "' + path_targetUserPersona_item + '")');
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
})();
|
|
1190
|
+
return v_error === undefined ? null : v_error;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
function validate$x(obj, path = 'AppExchangeForcePackageListingExtensionRepresentation') {
|
|
1194
|
+
const v_error = (() => {
|
|
1195
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1196
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1197
|
+
}
|
|
1198
|
+
const obj_gitHubRepositoryURL = obj.gitHubRepositoryURL;
|
|
1199
|
+
const path_gitHubRepositoryURL = path + '.gitHubRepositoryURL';
|
|
1200
|
+
if (typeof obj_gitHubRepositoryURL !== 'string') {
|
|
1201
|
+
return new TypeError('Expected "string" but received "' + typeof obj_gitHubRepositoryURL + '" (at "' + path_gitHubRepositoryURL + '")');
|
|
1202
|
+
}
|
|
1203
|
+
const obj_installUrl = obj.installUrl;
|
|
1204
|
+
const path_installUrl = path + '.installUrl';
|
|
1205
|
+
if (typeof obj_installUrl !== 'string') {
|
|
1206
|
+
return new TypeError('Expected "string" but received "' + typeof obj_installUrl + '" (at "' + path_installUrl + '")');
|
|
1207
|
+
}
|
|
1208
|
+
const obj_provisionFlow = obj.provisionFlow;
|
|
1209
|
+
const path_provisionFlow = path + '.provisionFlow';
|
|
1210
|
+
if (typeof obj_provisionFlow !== 'string') {
|
|
1211
|
+
return new TypeError('Expected "string" but received "' + typeof obj_provisionFlow + '" (at "' + path_provisionFlow + '")');
|
|
1212
|
+
}
|
|
1213
|
+
const obj_solutionId = obj.solutionId;
|
|
1214
|
+
const path_solutionId = path + '.solutionId';
|
|
1215
|
+
if (typeof obj_solutionId !== 'string') {
|
|
1216
|
+
return new TypeError('Expected "string" but received "' + typeof obj_solutionId + '" (at "' + path_solutionId + '")');
|
|
1217
|
+
}
|
|
1218
|
+
})();
|
|
1219
|
+
return v_error === undefined ? null : v_error;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
function validate$w(obj, path = 'AppExchangeForcePackageListingTestDriveExtensionRepresentation') {
|
|
1223
|
+
const v_error = (() => {
|
|
1224
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1225
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1226
|
+
}
|
|
1227
|
+
const obj_enableTestDrive = obj.enableTestDrive;
|
|
1228
|
+
const path_enableTestDrive = path + '.enableTestDrive';
|
|
1229
|
+
if (typeof obj_enableTestDrive !== 'boolean') {
|
|
1230
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enableTestDrive + '" (at "' + path_enableTestDrive + '")');
|
|
1231
|
+
}
|
|
1232
|
+
const obj_testDriveCampaignID = obj.testDriveCampaignID;
|
|
1233
|
+
const path_testDriveCampaignID = path + '.testDriveCampaignID';
|
|
1234
|
+
if (typeof obj_testDriveCampaignID !== 'string') {
|
|
1235
|
+
return new TypeError('Expected "string" but received "' + typeof obj_testDriveCampaignID + '" (at "' + path_testDriveCampaignID + '")');
|
|
1236
|
+
}
|
|
1237
|
+
const obj_testDriveOrgID = obj.testDriveOrgID;
|
|
1238
|
+
const path_testDriveOrgID = path + '.testDriveOrgID';
|
|
1239
|
+
if (typeof obj_testDriveOrgID !== 'string') {
|
|
1240
|
+
return new TypeError('Expected "string" but received "' + typeof obj_testDriveOrgID + '" (at "' + path_testDriveOrgID + '")');
|
|
1241
|
+
}
|
|
1242
|
+
const obj_testDrivePassword = obj.testDrivePassword;
|
|
1243
|
+
const path_testDrivePassword = path + '.testDrivePassword';
|
|
1244
|
+
if (typeof obj_testDrivePassword !== 'string') {
|
|
1245
|
+
return new TypeError('Expected "string" but received "' + typeof obj_testDrivePassword + '" (at "' + path_testDrivePassword + '")');
|
|
1246
|
+
}
|
|
1247
|
+
const obj_testDriveUserName = obj.testDriveUserName;
|
|
1248
|
+
const path_testDriveUserName = path + '.testDriveUserName';
|
|
1249
|
+
if (typeof obj_testDriveUserName !== 'string') {
|
|
1250
|
+
return new TypeError('Expected "string" but received "' + typeof obj_testDriveUserName + '" (at "' + path_testDriveUserName + '")');
|
|
1251
|
+
}
|
|
1252
|
+
})();
|
|
1253
|
+
return v_error === undefined ? null : v_error;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
function validate$v(obj, path = 'AppExchangeTableauExtensionRepresentation') {
|
|
1257
|
+
const v_error = (() => {
|
|
1258
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1259
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1260
|
+
}
|
|
1261
|
+
const obj_accessibleSolutionURL = obj.accessibleSolutionURL;
|
|
1262
|
+
const path_accessibleSolutionURL = path + '.accessibleSolutionURL';
|
|
1263
|
+
if (typeof obj_accessibleSolutionURL !== 'string') {
|
|
1264
|
+
return new TypeError('Expected "string" but received "' + typeof obj_accessibleSolutionURL + '" (at "' + path_accessibleSolutionURL + '")');
|
|
1265
|
+
}
|
|
1266
|
+
const obj_businessApproval = obj.businessApproval;
|
|
1267
|
+
const path_businessApproval = path + '.businessApproval';
|
|
1268
|
+
if (typeof obj_businessApproval !== 'string') {
|
|
1269
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessApproval + '" (at "' + path_businessApproval + '")');
|
|
1270
|
+
}
|
|
1271
|
+
const obj_creditorIdentifier = obj.creditorIdentifier;
|
|
1272
|
+
const path_creditorIdentifier = path + '.creditorIdentifier';
|
|
1273
|
+
if (typeof obj_creditorIdentifier !== 'string') {
|
|
1274
|
+
return new TypeError('Expected "string" but received "' + typeof obj_creditorIdentifier + '" (at "' + path_creditorIdentifier + '")');
|
|
1275
|
+
}
|
|
1276
|
+
const obj_delistedDate = obj.delistedDate;
|
|
1277
|
+
const path_delistedDate = path + '.delistedDate';
|
|
1278
|
+
if (typeof obj_delistedDate !== 'string') {
|
|
1279
|
+
return new TypeError('Expected "string" but received "' + typeof obj_delistedDate + '" (at "' + path_delistedDate + '")');
|
|
1280
|
+
}
|
|
1281
|
+
const obj_delistedReason = obj.delistedReason;
|
|
1282
|
+
const path_delistedReason = path + '.delistedReason';
|
|
1283
|
+
if (typeof obj_delistedReason !== 'string') {
|
|
1284
|
+
return new TypeError('Expected "string" but received "' + typeof obj_delistedReason + '" (at "' + path_delistedReason + '")');
|
|
1285
|
+
}
|
|
1286
|
+
const obj_diverseOwnedBusinessURL = obj.diverseOwnedBusinessURL;
|
|
1287
|
+
const path_diverseOwnedBusinessURL = path + '.diverseOwnedBusinessURL';
|
|
1288
|
+
if (typeof obj_diverseOwnedBusinessURL !== 'string') {
|
|
1289
|
+
return new TypeError('Expected "string" but received "' + typeof obj_diverseOwnedBusinessURL + '" (at "' + path_diverseOwnedBusinessURL + '")');
|
|
1290
|
+
}
|
|
1291
|
+
const obj_highlights = obj.highlights;
|
|
1292
|
+
const path_highlights = path + '.highlights';
|
|
1293
|
+
if (!ArrayIsArray(obj_highlights)) {
|
|
1294
|
+
return new TypeError('Expected "array" but received "' + typeof obj_highlights + '" (at "' + path_highlights + '")');
|
|
1295
|
+
}
|
|
1296
|
+
for (let i = 0; i < obj_highlights.length; i++) {
|
|
1297
|
+
const obj_highlights_item = obj_highlights[i];
|
|
1298
|
+
const path_highlights_item = path_highlights + '[' + i + ']';
|
|
1299
|
+
if (typeof obj_highlights_item !== 'string') {
|
|
1300
|
+
return new TypeError('Expected "string" but received "' + typeof obj_highlights_item + '" (at "' + path_highlights_item + '")');
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
const obj_industries = obj.industries;
|
|
1304
|
+
const path_industries = path + '.industries';
|
|
1305
|
+
if (!ArrayIsArray(obj_industries)) {
|
|
1306
|
+
return new TypeError('Expected "array" but received "' + typeof obj_industries + '" (at "' + path_industries + '")');
|
|
1307
|
+
}
|
|
1308
|
+
for (let i = 0; i < obj_industries.length; i++) {
|
|
1309
|
+
const obj_industries_item = obj_industries[i];
|
|
1310
|
+
const path_industries_item = path_industries + '[' + i + ']';
|
|
1311
|
+
if (typeof obj_industries_item !== 'string') {
|
|
1312
|
+
return new TypeError('Expected "string" but received "' + typeof obj_industries_item + '" (at "' + path_industries_item + '")');
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
const obj_isAccessibleSolution = obj.isAccessibleSolution;
|
|
1316
|
+
const path_isAccessibleSolution = path + '.isAccessibleSolution';
|
|
1317
|
+
if (typeof obj_isAccessibleSolution !== 'boolean') {
|
|
1318
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAccessibleSolution + '" (at "' + path_isAccessibleSolution + '")');
|
|
1319
|
+
}
|
|
1320
|
+
const obj_isDiverseOwnedBusiness = obj.isDiverseOwnedBusiness;
|
|
1321
|
+
const path_isDiverseOwnedBusiness = path + '.isDiverseOwnedBusiness';
|
|
1322
|
+
if (typeof obj_isDiverseOwnedBusiness !== 'boolean') {
|
|
1323
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDiverseOwnedBusiness + '" (at "' + path_isDiverseOwnedBusiness + '")');
|
|
1324
|
+
}
|
|
1325
|
+
const obj_isLightningAppBuilder = obj.isLightningAppBuilder;
|
|
1326
|
+
const path_isLightningAppBuilder = path + '.isLightningAppBuilder';
|
|
1327
|
+
if (typeof obj_isLightningAppBuilder !== 'boolean') {
|
|
1328
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isLightningAppBuilder + '" (at "' + path_isLightningAppBuilder + '")');
|
|
1329
|
+
}
|
|
1330
|
+
const obj_isPledge1Percent = obj.isPledge1Percent;
|
|
1331
|
+
const path_isPledge1Percent = path + '.isPledge1Percent';
|
|
1332
|
+
if (typeof obj_isPledge1Percent !== 'boolean') {
|
|
1333
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPledge1Percent + '" (at "' + path_isPledge1Percent + '")');
|
|
1334
|
+
}
|
|
1335
|
+
const obj_isPublic = obj.isPublic;
|
|
1336
|
+
const path_isPublic = path + '.isPublic';
|
|
1337
|
+
if (typeof obj_isPublic !== 'boolean') {
|
|
1338
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPublic + '" (at "' + path_isPublic + '")');
|
|
1339
|
+
}
|
|
1340
|
+
const obj_languages = obj.languages;
|
|
1341
|
+
const path_languages = path + '.languages';
|
|
1342
|
+
if (!ArrayIsArray(obj_languages)) {
|
|
1343
|
+
return new TypeError('Expected "array" but received "' + typeof obj_languages + '" (at "' + path_languages + '")');
|
|
1344
|
+
}
|
|
1345
|
+
for (let i = 0; i < obj_languages.length; i++) {
|
|
1346
|
+
const obj_languages_item = obj_languages[i];
|
|
1347
|
+
const path_languages_item = path_languages + '[' + i + ']';
|
|
1348
|
+
if (typeof obj_languages_item !== 'string') {
|
|
1349
|
+
return new TypeError('Expected "string" but received "' + typeof obj_languages_item + '" (at "' + path_languages_item + '")');
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
const obj_learnMoreURL = obj.learnMoreURL;
|
|
1353
|
+
const path_learnMoreURL = path + '.learnMoreURL';
|
|
1354
|
+
if (typeof obj_learnMoreURL !== 'string') {
|
|
1355
|
+
return new TypeError('Expected "string" but received "' + typeof obj_learnMoreURL + '" (at "' + path_learnMoreURL + '")');
|
|
1356
|
+
}
|
|
1357
|
+
const obj_licenseAgreement = obj.licenseAgreement;
|
|
1358
|
+
const path_licenseAgreement = path + '.licenseAgreement';
|
|
1359
|
+
if (typeof obj_licenseAgreement !== 'string') {
|
|
1360
|
+
return new TypeError('Expected "string" but received "' + typeof obj_licenseAgreement + '" (at "' + path_licenseAgreement + '")');
|
|
1361
|
+
}
|
|
1362
|
+
const obj_listingCategories = obj.listingCategories;
|
|
1363
|
+
const path_listingCategories = path + '.listingCategories';
|
|
1364
|
+
if (!ArrayIsArray(obj_listingCategories)) {
|
|
1365
|
+
return new TypeError('Expected "array" but received "' + typeof obj_listingCategories + '" (at "' + path_listingCategories + '")');
|
|
1366
|
+
}
|
|
1367
|
+
for (let i = 0; i < obj_listingCategories.length; i++) {
|
|
1368
|
+
const obj_listingCategories_item = obj_listingCategories[i];
|
|
1369
|
+
const path_listingCategories_item = path_listingCategories + '[' + i + ']';
|
|
1370
|
+
if (typeof obj_listingCategories_item !== 'string') {
|
|
1371
|
+
return new TypeError('Expected "string" but received "' + typeof obj_listingCategories_item + '" (at "' + path_listingCategories_item + '")');
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
const obj_longDescription = obj.longDescription;
|
|
1375
|
+
const path_longDescription = path + '.longDescription';
|
|
1376
|
+
if (typeof obj_longDescription !== 'string') {
|
|
1377
|
+
return new TypeError('Expected "string" but received "' + typeof obj_longDescription + '" (at "' + path_longDescription + '")');
|
|
1378
|
+
}
|
|
1379
|
+
const obj_marketplace = obj.marketplace;
|
|
1380
|
+
const path_marketplace = path + '.marketplace';
|
|
1381
|
+
if (typeof obj_marketplace !== 'string') {
|
|
1382
|
+
return new TypeError('Expected "string" but received "' + typeof obj_marketplace + '" (at "' + path_marketplace + '")');
|
|
1383
|
+
}
|
|
1384
|
+
const obj_productsRequired = obj.productsRequired;
|
|
1385
|
+
const path_productsRequired = path + '.productsRequired';
|
|
1386
|
+
if (!ArrayIsArray(obj_productsRequired)) {
|
|
1387
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productsRequired + '" (at "' + path_productsRequired + '")');
|
|
1388
|
+
}
|
|
1389
|
+
for (let i = 0; i < obj_productsRequired.length; i++) {
|
|
1390
|
+
const obj_productsRequired_item = obj_productsRequired[i];
|
|
1391
|
+
const path_productsRequired_item = path_productsRequired + '[' + i + ']';
|
|
1392
|
+
if (typeof obj_productsRequired_item !== 'string') {
|
|
1393
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productsRequired_item + '" (at "' + path_productsRequired_item + '")');
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
const obj_productsSupported = obj.productsSupported;
|
|
1397
|
+
const path_productsSupported = path + '.productsSupported';
|
|
1398
|
+
if (!ArrayIsArray(obj_productsSupported)) {
|
|
1399
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productsSupported + '" (at "' + path_productsSupported + '")');
|
|
1400
|
+
}
|
|
1401
|
+
for (let i = 0; i < obj_productsSupported.length; i++) {
|
|
1402
|
+
const obj_productsSupported_item = obj_productsSupported[i];
|
|
1403
|
+
const path_productsSupported_item = path_productsSupported + '[' + i + ']';
|
|
1404
|
+
if (typeof obj_productsSupported_item !== 'string') {
|
|
1405
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productsSupported_item + '" (at "' + path_productsSupported_item + '")');
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
const obj_publishedDate = obj.publishedDate;
|
|
1409
|
+
const path_publishedDate = path + '.publishedDate';
|
|
1410
|
+
if (typeof obj_publishedDate !== 'string') {
|
|
1411
|
+
return new TypeError('Expected "string" but received "' + typeof obj_publishedDate + '" (at "' + path_publishedDate + '")');
|
|
1412
|
+
}
|
|
1413
|
+
const obj_searchBlurb = obj.searchBlurb;
|
|
1414
|
+
const path_searchBlurb = path + '.searchBlurb';
|
|
1415
|
+
if (typeof obj_searchBlurb !== 'string') {
|
|
1416
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchBlurb + '" (at "' + path_searchBlurb + '")');
|
|
1417
|
+
}
|
|
1418
|
+
const obj_selfAttestation = obj.selfAttestation;
|
|
1419
|
+
const path_selfAttestation = path + '.selfAttestation';
|
|
1420
|
+
if (typeof obj_selfAttestation !== 'boolean') {
|
|
1421
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_selfAttestation + '" (at "' + path_selfAttestation + '")');
|
|
1422
|
+
}
|
|
1423
|
+
const obj_selfAttestationDate = obj.selfAttestationDate;
|
|
1424
|
+
const path_selfAttestationDate = path + '.selfAttestationDate';
|
|
1425
|
+
if (typeof obj_selfAttestationDate !== 'string') {
|
|
1426
|
+
return new TypeError('Expected "string" but received "' + typeof obj_selfAttestationDate + '" (at "' + path_selfAttestationDate + '")');
|
|
1427
|
+
}
|
|
1428
|
+
const obj_status = obj.status;
|
|
1429
|
+
const path_status = path + '.status';
|
|
1430
|
+
if (typeof obj_status !== 'string') {
|
|
1431
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1432
|
+
}
|
|
1433
|
+
const obj_supportedIndustries = obj.supportedIndustries;
|
|
1434
|
+
const path_supportedIndustries = path + '.supportedIndustries';
|
|
1435
|
+
if (!ArrayIsArray(obj_supportedIndustries)) {
|
|
1436
|
+
return new TypeError('Expected "array" but received "' + typeof obj_supportedIndustries + '" (at "' + path_supportedIndustries + '")');
|
|
1437
|
+
}
|
|
1438
|
+
for (let i = 0; i < obj_supportedIndustries.length; i++) {
|
|
1439
|
+
const obj_supportedIndustries_item = obj_supportedIndustries[i];
|
|
1440
|
+
const path_supportedIndustries_item = path_supportedIndustries + '[' + i + ']';
|
|
1441
|
+
if (typeof obj_supportedIndustries_item !== 'string') {
|
|
1442
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportedIndustries_item + '" (at "' + path_supportedIndustries_item + '")');
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
const obj_systemRequirements = obj.systemRequirements;
|
|
1446
|
+
const path_systemRequirements = path + '.systemRequirements';
|
|
1447
|
+
if (typeof obj_systemRequirements !== 'string') {
|
|
1448
|
+
return new TypeError('Expected "string" but received "' + typeof obj_systemRequirements + '" (at "' + path_systemRequirements + '")');
|
|
1449
|
+
}
|
|
1450
|
+
const obj_targetUserPersona = obj.targetUserPersona;
|
|
1451
|
+
const path_targetUserPersona = path + '.targetUserPersona';
|
|
1452
|
+
if (!ArrayIsArray(obj_targetUserPersona)) {
|
|
1453
|
+
return new TypeError('Expected "array" but received "' + typeof obj_targetUserPersona + '" (at "' + path_targetUserPersona + '")');
|
|
1454
|
+
}
|
|
1455
|
+
for (let i = 0; i < obj_targetUserPersona.length; i++) {
|
|
1456
|
+
const obj_targetUserPersona_item = obj_targetUserPersona[i];
|
|
1457
|
+
const path_targetUserPersona_item = path_targetUserPersona + '[' + i + ']';
|
|
1458
|
+
if (typeof obj_targetUserPersona_item !== 'string') {
|
|
1459
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetUserPersona_item + '" (at "' + path_targetUserPersona_item + '")');
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
})();
|
|
1463
|
+
return v_error === undefined ? null : v_error;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
function validate$u(obj, path = 'AppExchangeListingExtensionsRepresentation') {
|
|
1467
|
+
const v_error = (() => {
|
|
1468
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1469
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1470
|
+
}
|
|
1471
|
+
if (obj.listing_extensions_force_listings_CopilotListing !== undefined) {
|
|
1472
|
+
const obj_listing_extensions_force_listings_CopilotListing = obj.listing_extensions_force_listings_CopilotListing;
|
|
1473
|
+
const path_listing_extensions_force_listings_CopilotListing = path + '.listing_extensions_force_listings_CopilotListing';
|
|
1474
|
+
const referencepath_listing_extensions_force_listings_CopilotListingValidationError = validate$z(obj_listing_extensions_force_listings_CopilotListing, path_listing_extensions_force_listings_CopilotListing);
|
|
1475
|
+
if (referencepath_listing_extensions_force_listings_CopilotListingValidationError !== null) {
|
|
1476
|
+
let message = 'Object doesn\'t match AppExchangeForceCopilotListingExtensionRepresentation (at "' + path_listing_extensions_force_listings_CopilotListing + '")\n';
|
|
1477
|
+
message += referencepath_listing_extensions_force_listings_CopilotListingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1478
|
+
return new TypeError(message);
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
if (obj.listing_extensions_force_listings_Listing !== undefined) {
|
|
1482
|
+
const obj_listing_extensions_force_listings_Listing = obj.listing_extensions_force_listings_Listing;
|
|
1483
|
+
const path_listing_extensions_force_listings_Listing = path + '.listing_extensions_force_listings_Listing';
|
|
1484
|
+
const referencepath_listing_extensions_force_listings_ListingValidationError = validate$y(obj_listing_extensions_force_listings_Listing, path_listing_extensions_force_listings_Listing);
|
|
1485
|
+
if (referencepath_listing_extensions_force_listings_ListingValidationError !== null) {
|
|
1486
|
+
let message = 'Object doesn\'t match AppExchangeForceExtensionRepresentation (at "' + path_listing_extensions_force_listings_Listing + '")\n';
|
|
1487
|
+
message += referencepath_listing_extensions_force_listings_ListingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1488
|
+
return new TypeError(message);
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
if (obj.listing_extensions_force_listings_Listing_extensions_PackageListing !== undefined) {
|
|
1492
|
+
const obj_listing_extensions_force_listings_Listing_extensions_PackageListing = obj.listing_extensions_force_listings_Listing_extensions_PackageListing;
|
|
1493
|
+
const path_listing_extensions_force_listings_Listing_extensions_PackageListing = path + '.listing_extensions_force_listings_Listing_extensions_PackageListing';
|
|
1494
|
+
const referencepath_listing_extensions_force_listings_Listing_extensions_PackageListingValidationError = validate$x(obj_listing_extensions_force_listings_Listing_extensions_PackageListing, path_listing_extensions_force_listings_Listing_extensions_PackageListing);
|
|
1495
|
+
if (referencepath_listing_extensions_force_listings_Listing_extensions_PackageListingValidationError !== null) {
|
|
1496
|
+
let message = 'Object doesn\'t match AppExchangeForcePackageListingExtensionRepresentation (at "' + path_listing_extensions_force_listings_Listing_extensions_PackageListing + '")\n';
|
|
1497
|
+
message += referencepath_listing_extensions_force_listings_Listing_extensions_PackageListingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1498
|
+
return new TypeError(message);
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
if (obj.listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive !== undefined) {
|
|
1502
|
+
const obj_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive = obj.listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive;
|
|
1503
|
+
const path_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive = path + '.listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive';
|
|
1504
|
+
const referencepath_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDriveValidationError = validate$w(obj_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive, path_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive);
|
|
1505
|
+
if (referencepath_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDriveValidationError !== null) {
|
|
1506
|
+
let message = 'Object doesn\'t match AppExchangeForcePackageListingTestDriveExtensionRepresentation (at "' + path_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDrive + '")\n';
|
|
1507
|
+
message += referencepath_listing_extensions_force_listings_Listing_extensions_PackageListing_TestDriveValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1508
|
+
return new TypeError(message);
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
if (obj.listing_extensions_tableau_listings_Listing !== undefined) {
|
|
1512
|
+
const obj_listing_extensions_tableau_listings_Listing = obj.listing_extensions_tableau_listings_Listing;
|
|
1513
|
+
const path_listing_extensions_tableau_listings_Listing = path + '.listing_extensions_tableau_listings_Listing';
|
|
1514
|
+
const referencepath_listing_extensions_tableau_listings_ListingValidationError = validate$v(obj_listing_extensions_tableau_listings_Listing, path_listing_extensions_tableau_listings_Listing);
|
|
1515
|
+
if (referencepath_listing_extensions_tableau_listings_ListingValidationError !== null) {
|
|
1516
|
+
let message = 'Object doesn\'t match AppExchangeTableauExtensionRepresentation (at "' + path_listing_extensions_tableau_listings_Listing + '")\n';
|
|
1517
|
+
message += referencepath_listing_extensions_tableau_listings_ListingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1518
|
+
return new TypeError(message);
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
})();
|
|
1522
|
+
return v_error === undefined ? null : v_error;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
var DiscriminatorValues$3;
|
|
1526
|
+
(function (DiscriminatorValues) {
|
|
1527
|
+
DiscriminatorValues["Video"] = "Video";
|
|
1528
|
+
DiscriminatorValues["Image"] = "Image";
|
|
1529
|
+
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
1530
|
+
function validate$t(obj, path = 'AppExchangeCarouselItemDataRepresentation') {
|
|
1531
|
+
const v_error = (() => {
|
|
1532
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1533
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1534
|
+
}
|
|
1535
|
+
const obj_dataType = obj.dataType;
|
|
1536
|
+
const path_dataType = path + '.dataType';
|
|
1537
|
+
if (typeof obj_dataType !== 'string') {
|
|
1538
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
1539
|
+
}
|
|
1540
|
+
})();
|
|
1541
|
+
return v_error === undefined ? null : v_error;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
function validate$s(obj, path = 'AppExchangeCarouselItemRepresentation') {
|
|
1545
|
+
const v_error = (() => {
|
|
1546
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1547
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1548
|
+
}
|
|
1549
|
+
const obj_data = obj.data;
|
|
1550
|
+
const path_data = path + '.data';
|
|
1551
|
+
const referencepath_dataValidationError = validate$t(obj_data, path_data);
|
|
1552
|
+
if (referencepath_dataValidationError !== null) {
|
|
1553
|
+
let message = 'Object doesn\'t match AppExchangeCarouselItemDataRepresentation (at "' + path_data + '")\n';
|
|
1554
|
+
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1555
|
+
return new TypeError(message);
|
|
1556
|
+
}
|
|
1557
|
+
const obj_externalId = obj.externalId;
|
|
1558
|
+
const path_externalId = path + '.externalId';
|
|
1559
|
+
if (typeof obj_externalId !== 'string') {
|
|
1560
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
1561
|
+
}
|
|
1562
|
+
const obj_type = obj.type;
|
|
1563
|
+
const path_type = path + '.type';
|
|
1564
|
+
if (typeof obj_type !== 'string') {
|
|
1565
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1566
|
+
}
|
|
1567
|
+
})();
|
|
1568
|
+
return v_error === undefined ? null : v_error;
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
function validate$r(obj, path = 'AppExchangeCarouselPluginRepresentation') {
|
|
1572
|
+
const v_error = (() => {
|
|
1573
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1574
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1575
|
+
}
|
|
1576
|
+
const obj_items = obj.items;
|
|
1577
|
+
const path_items = path + '.items';
|
|
1578
|
+
if (!ArrayIsArray(obj_items)) {
|
|
1579
|
+
return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
|
|
1580
|
+
}
|
|
1581
|
+
for (let i = 0; i < obj_items.length; i++) {
|
|
1582
|
+
const obj_items_item = obj_items[i];
|
|
1583
|
+
const path_items_item = path_items + '[' + i + ']';
|
|
1584
|
+
const referencepath_items_itemValidationError = validate$s(obj_items_item, path_items_item);
|
|
1585
|
+
if (referencepath_items_itemValidationError !== null) {
|
|
1586
|
+
let message = 'Object doesn\'t match AppExchangeCarouselItemRepresentation (at "' + path_items_item + '")\n';
|
|
1587
|
+
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1588
|
+
return new TypeError(message);
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
})();
|
|
1592
|
+
return v_error === undefined ? null : v_error;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
var DiscriminatorValues$2;
|
|
1596
|
+
(function (DiscriminatorValues) {
|
|
1597
|
+
DiscriminatorValues["Url"] = "Url";
|
|
1598
|
+
DiscriminatorValues["File"] = "File";
|
|
1599
|
+
})(DiscriminatorValues$2 || (DiscriminatorValues$2 = {}));
|
|
1600
|
+
function validate$q(obj, path = 'AppExchangeContentItemDataRepresentation') {
|
|
1601
|
+
const v_error = (() => {
|
|
1602
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1603
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1604
|
+
}
|
|
1605
|
+
const obj_dataType = obj.dataType;
|
|
1606
|
+
const path_dataType = path + '.dataType';
|
|
1607
|
+
if (typeof obj_dataType !== 'string') {
|
|
1608
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
1609
|
+
}
|
|
1610
|
+
})();
|
|
1611
|
+
return v_error === undefined ? null : v_error;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
function validate$p(obj, path = 'AppExchangeContentItemRepresentation') {
|
|
1615
|
+
const v_error = (() => {
|
|
1616
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1617
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1618
|
+
}
|
|
1619
|
+
const obj_data = obj.data;
|
|
1620
|
+
const path_data = path + '.data';
|
|
1621
|
+
const referencepath_dataValidationError = validate$q(obj_data, path_data);
|
|
1622
|
+
if (referencepath_dataValidationError !== null) {
|
|
1623
|
+
let message = 'Object doesn\'t match AppExchangeContentItemDataRepresentation (at "' + path_data + '")\n';
|
|
1624
|
+
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1625
|
+
return new TypeError(message);
|
|
1626
|
+
}
|
|
1627
|
+
const obj_externalId = obj.externalId;
|
|
1628
|
+
const path_externalId = path + '.externalId';
|
|
1629
|
+
if (typeof obj_externalId !== 'string') {
|
|
1630
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
1631
|
+
}
|
|
1632
|
+
const obj_type = obj.type;
|
|
1633
|
+
const path_type = path + '.type';
|
|
1634
|
+
if (typeof obj_type !== 'string') {
|
|
1635
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1636
|
+
}
|
|
1637
|
+
})();
|
|
1638
|
+
return v_error === undefined ? null : v_error;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
function validate$o(obj, path = 'AppExchangeContentPluginRepresentation') {
|
|
1642
|
+
const v_error = (() => {
|
|
1643
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1644
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1645
|
+
}
|
|
1646
|
+
const obj_items = obj.items;
|
|
1647
|
+
const path_items = path + '.items';
|
|
1648
|
+
if (!ArrayIsArray(obj_items)) {
|
|
1649
|
+
return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
|
|
1650
|
+
}
|
|
1651
|
+
for (let i = 0; i < obj_items.length; i++) {
|
|
1652
|
+
const obj_items_item = obj_items[i];
|
|
1653
|
+
const path_items_item = path_items + '[' + i + ']';
|
|
1654
|
+
const referencepath_items_itemValidationError = validate$p(obj_items_item, path_items_item);
|
|
1655
|
+
if (referencepath_items_itemValidationError !== null) {
|
|
1656
|
+
let message = 'Object doesn\'t match AppExchangeContentItemRepresentation (at "' + path_items_item + '")\n';
|
|
1657
|
+
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1658
|
+
return new TypeError(message);
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
})();
|
|
1662
|
+
return v_error === undefined ? null : v_error;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
function validate$n(obj, path = 'AppExchangeDemoVideoRepresentation') {
|
|
1666
|
+
const v_error = (() => {
|
|
1667
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1668
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1669
|
+
}
|
|
1670
|
+
if (obj.attachmentId !== undefined) {
|
|
1671
|
+
const obj_attachmentId = obj.attachmentId;
|
|
1672
|
+
const path_attachmentId = path + '.attachmentId';
|
|
1673
|
+
if (typeof obj_attachmentId !== 'string') {
|
|
1674
|
+
return new TypeError('Expected "string" but received "' + typeof obj_attachmentId + '" (at "' + path_attachmentId + '")');
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
if (obj.companyId !== undefined) {
|
|
1678
|
+
const obj_companyId = obj.companyId;
|
|
1679
|
+
const path_companyId = path + '.companyId';
|
|
1680
|
+
if (typeof obj_companyId !== 'string') {
|
|
1681
|
+
return new TypeError('Expected "string" but received "' + typeof obj_companyId + '" (at "' + path_companyId + '")');
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
const obj_externalId = obj.externalId;
|
|
1685
|
+
const path_externalId = path + '.externalId';
|
|
1686
|
+
if (typeof obj_externalId !== 'string') {
|
|
1687
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
1688
|
+
}
|
|
1689
|
+
if (obj.mediaId !== undefined) {
|
|
1690
|
+
const obj_mediaId = obj.mediaId;
|
|
1691
|
+
const path_mediaId = path + '.mediaId';
|
|
1692
|
+
if (typeof obj_mediaId !== 'string') {
|
|
1693
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mediaId + '" (at "' + path_mediaId + '")');
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
const obj_url = obj.url;
|
|
1697
|
+
const path_url = path + '.url';
|
|
1698
|
+
if (typeof obj_url !== 'string') {
|
|
1699
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
1700
|
+
}
|
|
1701
|
+
const obj_videoType = obj.videoType;
|
|
1702
|
+
const path_videoType = path + '.videoType';
|
|
1703
|
+
if (typeof obj_videoType !== 'string') {
|
|
1704
|
+
return new TypeError('Expected "string" but received "' + typeof obj_videoType + '" (at "' + path_videoType + '")');
|
|
1705
|
+
}
|
|
1706
|
+
})();
|
|
1707
|
+
return v_error === undefined ? null : v_error;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
function validate$m(obj, path = 'AppExchangeDemoPluginRepresentation') {
|
|
1711
|
+
const v_error = (() => {
|
|
1712
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1713
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1714
|
+
}
|
|
1715
|
+
const obj_items = obj.items;
|
|
1716
|
+
const path_items = path + '.items';
|
|
1717
|
+
if (!ArrayIsArray(obj_items)) {
|
|
1718
|
+
return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
|
|
1719
|
+
}
|
|
1720
|
+
for (let i = 0; i < obj_items.length; i++) {
|
|
1721
|
+
const obj_items_item = obj_items[i];
|
|
1722
|
+
const path_items_item = path_items + '[' + i + ']';
|
|
1723
|
+
const referencepath_items_itemValidationError = validate$n(obj_items_item, path_items_item);
|
|
1724
|
+
if (referencepath_items_itemValidationError !== null) {
|
|
1725
|
+
let message = 'Object doesn\'t match AppExchangeDemoVideoRepresentation (at "' + path_items_item + '")\n';
|
|
1726
|
+
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1727
|
+
return new TypeError(message);
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
})();
|
|
1731
|
+
return v_error === undefined ? null : v_error;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
function validate$l(obj, path = 'AppExchangeLeadTrialInformationPluginRepresentation') {
|
|
1735
|
+
const v_error = (() => {
|
|
1736
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1737
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1738
|
+
}
|
|
1739
|
+
const obj_demoCampaignID = obj.demoCampaignID;
|
|
1740
|
+
const path_demoCampaignID = path + '.demoCampaignID';
|
|
1741
|
+
if (typeof obj_demoCampaignID !== 'string') {
|
|
1742
|
+
return new TypeError('Expected "string" but received "' + typeof obj_demoCampaignID + '" (at "' + path_demoCampaignID + '")');
|
|
1743
|
+
}
|
|
1744
|
+
const obj_enableDemoLeads = obj.enableDemoLeads;
|
|
1745
|
+
const path_enableDemoLeads = path + '.enableDemoLeads';
|
|
1746
|
+
if (typeof obj_enableDemoLeads !== 'boolean') {
|
|
1747
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enableDemoLeads + '" (at "' + path_enableDemoLeads + '")');
|
|
1748
|
+
}
|
|
1749
|
+
const obj_enableInstallLeads = obj.enableInstallLeads;
|
|
1750
|
+
const path_enableInstallLeads = path + '.enableInstallLeads';
|
|
1751
|
+
if (typeof obj_enableInstallLeads !== 'boolean') {
|
|
1752
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enableInstallLeads + '" (at "' + path_enableInstallLeads + '")');
|
|
1753
|
+
}
|
|
1754
|
+
const obj_enableLearnMoreLeads = obj.enableLearnMoreLeads;
|
|
1755
|
+
const path_enableLearnMoreLeads = path + '.enableLearnMoreLeads';
|
|
1756
|
+
if (typeof obj_enableLearnMoreLeads !== 'boolean') {
|
|
1757
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enableLearnMoreLeads + '" (at "' + path_enableLearnMoreLeads + '")');
|
|
1758
|
+
}
|
|
1759
|
+
const obj_enableTestDriveLeads = obj.enableTestDriveLeads;
|
|
1760
|
+
const path_enableTestDriveLeads = path + '.enableTestDriveLeads';
|
|
1761
|
+
if (typeof obj_enableTestDriveLeads !== 'boolean') {
|
|
1762
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enableTestDriveLeads + '" (at "' + path_enableTestDriveLeads + '")');
|
|
1763
|
+
}
|
|
1764
|
+
const obj_enableTrialLeads = obj.enableTrialLeads;
|
|
1765
|
+
const path_enableTrialLeads = path + '.enableTrialLeads';
|
|
1766
|
+
if (typeof obj_enableTrialLeads !== 'boolean') {
|
|
1767
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enableTrialLeads + '" (at "' + path_enableTrialLeads + '")');
|
|
1768
|
+
}
|
|
1769
|
+
const obj_installCampaignID = obj.installCampaignID;
|
|
1770
|
+
const path_installCampaignID = path + '.installCampaignID';
|
|
1771
|
+
if (typeof obj_installCampaignID !== 'string') {
|
|
1772
|
+
return new TypeError('Expected "string" but received "' + typeof obj_installCampaignID + '" (at "' + path_installCampaignID + '")');
|
|
1773
|
+
}
|
|
1774
|
+
const obj_leadsOrgID = obj.leadsOrgID;
|
|
1775
|
+
const path_leadsOrgID = path + '.leadsOrgID';
|
|
1776
|
+
if (typeof obj_leadsOrgID !== 'string') {
|
|
1777
|
+
return new TypeError('Expected "string" but received "' + typeof obj_leadsOrgID + '" (at "' + path_leadsOrgID + '")');
|
|
1778
|
+
}
|
|
1779
|
+
const obj_learnMoreCampaignID = obj.learnMoreCampaignID;
|
|
1780
|
+
const path_learnMoreCampaignID = path + '.learnMoreCampaignID';
|
|
1781
|
+
if (typeof obj_learnMoreCampaignID !== 'string') {
|
|
1782
|
+
return new TypeError('Expected "string" but received "' + typeof obj_learnMoreCampaignID + '" (at "' + path_learnMoreCampaignID + '")');
|
|
1783
|
+
}
|
|
1784
|
+
const obj_testDriveCampaignID = obj.testDriveCampaignID;
|
|
1785
|
+
const path_testDriveCampaignID = path + '.testDriveCampaignID';
|
|
1786
|
+
if (typeof obj_testDriveCampaignID !== 'string') {
|
|
1787
|
+
return new TypeError('Expected "string" but received "' + typeof obj_testDriveCampaignID + '" (at "' + path_testDriveCampaignID + '")');
|
|
1788
|
+
}
|
|
1789
|
+
const obj_trialCampaignID = obj.trialCampaignID;
|
|
1790
|
+
const path_trialCampaignID = path + '.trialCampaignID';
|
|
1791
|
+
if (typeof obj_trialCampaignID !== 'string') {
|
|
1792
|
+
return new TypeError('Expected "string" but received "' + typeof obj_trialCampaignID + '" (at "' + path_trialCampaignID + '")');
|
|
1793
|
+
}
|
|
1794
|
+
})();
|
|
1795
|
+
return v_error === undefined ? null : v_error;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
function validate$k(obj, path = 'AppExchangeLogoSetItemRepresentation') {
|
|
1799
|
+
const v_error = (() => {
|
|
1800
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1801
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1802
|
+
}
|
|
1803
|
+
const obj_externalId = obj.externalId;
|
|
1804
|
+
const path_externalId = path + '.externalId';
|
|
1805
|
+
if (typeof obj_externalId !== 'string') {
|
|
1806
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
1807
|
+
}
|
|
1808
|
+
const obj_logoType = obj.logoType;
|
|
1809
|
+
const path_logoType = path + '.logoType';
|
|
1810
|
+
if (typeof obj_logoType !== 'string') {
|
|
1811
|
+
return new TypeError('Expected "string" but received "' + typeof obj_logoType + '" (at "' + path_logoType + '")');
|
|
1812
|
+
}
|
|
1813
|
+
const obj_mediaId = obj.mediaId;
|
|
1814
|
+
const path_mediaId = path + '.mediaId';
|
|
1815
|
+
if (typeof obj_mediaId !== 'string') {
|
|
1816
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mediaId + '" (at "' + path_mediaId + '")');
|
|
1817
|
+
}
|
|
1818
|
+
})();
|
|
1819
|
+
return v_error === undefined ? null : v_error;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
function validate$j(obj, path = 'AppExchangeLogoSetPluginRepresentation') {
|
|
1823
|
+
const v_error = (() => {
|
|
1824
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1825
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1826
|
+
}
|
|
1827
|
+
const obj_items = obj.items;
|
|
1828
|
+
const path_items = path + '.items';
|
|
1829
|
+
if (!ArrayIsArray(obj_items)) {
|
|
1830
|
+
return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
|
|
1831
|
+
}
|
|
1832
|
+
for (let i = 0; i < obj_items.length; i++) {
|
|
1833
|
+
const obj_items_item = obj_items[i];
|
|
1834
|
+
const path_items_item = path_items + '[' + i + ']';
|
|
1835
|
+
const referencepath_items_itemValidationError = validate$k(obj_items_item, path_items_item);
|
|
1836
|
+
if (referencepath_items_itemValidationError !== null) {
|
|
1837
|
+
let message = 'Object doesn\'t match AppExchangeLogoSetItemRepresentation (at "' + path_items_item + '")\n';
|
|
1838
|
+
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1839
|
+
return new TypeError(message);
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
})();
|
|
1843
|
+
return v_error === undefined ? null : v_error;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
function validate$i(obj, path = 'AppExchangeSupportInformationPluginRepresentation') {
|
|
1847
|
+
const v_error = (() => {
|
|
1848
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1849
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1850
|
+
}
|
|
1851
|
+
const obj_businessEmail = obj.businessEmail;
|
|
1852
|
+
const path_businessEmail = path + '.businessEmail';
|
|
1853
|
+
if (typeof obj_businessEmail !== 'string') {
|
|
1854
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessEmail + '" (at "' + path_businessEmail + '")');
|
|
1855
|
+
}
|
|
1856
|
+
const obj_reviewsEmail = obj.reviewsEmail;
|
|
1857
|
+
const path_reviewsEmail = path + '.reviewsEmail';
|
|
1858
|
+
if (typeof obj_reviewsEmail !== 'string') {
|
|
1859
|
+
return new TypeError('Expected "string" but received "' + typeof obj_reviewsEmail + '" (at "' + path_reviewsEmail + '")');
|
|
1860
|
+
}
|
|
1861
|
+
const obj_support24x7 = obj.support24x7;
|
|
1862
|
+
const path_support24x7 = path + '.support24x7';
|
|
1863
|
+
if (typeof obj_support24x7 !== 'boolean') {
|
|
1864
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_support24x7 + '" (at "' + path_support24x7 + '")');
|
|
1865
|
+
}
|
|
1866
|
+
const obj_supportDetails = obj.supportDetails;
|
|
1867
|
+
const path_supportDetails = path + '.supportDetails';
|
|
1868
|
+
if (typeof obj_supportDetails !== 'string') {
|
|
1869
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportDetails + '" (at "' + path_supportDetails + '")');
|
|
1870
|
+
}
|
|
1871
|
+
const obj_supportEmailAddress = obj.supportEmailAddress;
|
|
1872
|
+
const path_supportEmailAddress = path + '.supportEmailAddress';
|
|
1873
|
+
if (typeof obj_supportEmailAddress !== 'string') {
|
|
1874
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportEmailAddress + '" (at "' + path_supportEmailAddress + '")');
|
|
1875
|
+
}
|
|
1876
|
+
const obj_supportEmailCost = obj.supportEmailCost;
|
|
1877
|
+
const path_supportEmailCost = path + '.supportEmailCost';
|
|
1878
|
+
if (typeof obj_supportEmailCost !== 'boolean') {
|
|
1879
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_supportEmailCost + '" (at "' + path_supportEmailCost + '")');
|
|
1880
|
+
}
|
|
1881
|
+
const obj_supportKnowledgeBaseCost = obj.supportKnowledgeBaseCost;
|
|
1882
|
+
const path_supportKnowledgeBaseCost = path + '.supportKnowledgeBaseCost';
|
|
1883
|
+
if (typeof obj_supportKnowledgeBaseCost !== 'boolean') {
|
|
1884
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_supportKnowledgeBaseCost + '" (at "' + path_supportKnowledgeBaseCost + '")');
|
|
1885
|
+
}
|
|
1886
|
+
const obj_supportKnowledgeBaseURL = obj.supportKnowledgeBaseURL;
|
|
1887
|
+
const path_supportKnowledgeBaseURL = path + '.supportKnowledgeBaseURL';
|
|
1888
|
+
if (typeof obj_supportKnowledgeBaseURL !== 'string') {
|
|
1889
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportKnowledgeBaseURL + '" (at "' + path_supportKnowledgeBaseURL + '")');
|
|
1890
|
+
}
|
|
1891
|
+
const obj_supportNotProvided = obj.supportNotProvided;
|
|
1892
|
+
const path_supportNotProvided = path + '.supportNotProvided';
|
|
1893
|
+
if (typeof obj_supportNotProvided !== 'boolean') {
|
|
1894
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_supportNotProvided + '" (at "' + path_supportNotProvided + '")');
|
|
1895
|
+
}
|
|
1896
|
+
const obj_supportOnlineChatCost = obj.supportOnlineChatCost;
|
|
1897
|
+
const path_supportOnlineChatCost = path + '.supportOnlineChatCost';
|
|
1898
|
+
if (typeof obj_supportOnlineChatCost !== 'boolean') {
|
|
1899
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_supportOnlineChatCost + '" (at "' + path_supportOnlineChatCost + '")');
|
|
1900
|
+
}
|
|
1901
|
+
const obj_supportOnlineChatURL = obj.supportOnlineChatURL;
|
|
1902
|
+
const path_supportOnlineChatURL = path + '.supportOnlineChatURL';
|
|
1903
|
+
if (typeof obj_supportOnlineChatURL !== 'string') {
|
|
1904
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportOnlineChatURL + '" (at "' + path_supportOnlineChatURL + '")');
|
|
1905
|
+
}
|
|
1906
|
+
const obj_supportPhoneCost = obj.supportPhoneCost;
|
|
1907
|
+
const path_supportPhoneCost = path + '.supportPhoneCost';
|
|
1908
|
+
if (typeof obj_supportPhoneCost !== 'boolean') {
|
|
1909
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_supportPhoneCost + '" (at "' + path_supportPhoneCost + '")');
|
|
1910
|
+
}
|
|
1911
|
+
const obj_supportPhoneNumber = obj.supportPhoneNumber;
|
|
1912
|
+
const path_supportPhoneNumber = path + '.supportPhoneNumber';
|
|
1913
|
+
if (typeof obj_supportPhoneNumber !== 'string') {
|
|
1914
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportPhoneNumber + '" (at "' + path_supportPhoneNumber + '")');
|
|
1915
|
+
}
|
|
1916
|
+
const obj_supportPremiumAvailable = obj.supportPremiumAvailable;
|
|
1917
|
+
const path_supportPremiumAvailable = path + '.supportPremiumAvailable';
|
|
1918
|
+
if (typeof obj_supportPremiumAvailable !== 'boolean') {
|
|
1919
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_supportPremiumAvailable + '" (at "' + path_supportPremiumAvailable + '")');
|
|
1920
|
+
}
|
|
1921
|
+
const obj_supportSLA = obj.supportSLA;
|
|
1922
|
+
const path_supportSLA = path + '.supportSLA';
|
|
1923
|
+
if (typeof obj_supportSLA !== 'boolean') {
|
|
1924
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_supportSLA + '" (at "' + path_supportSLA + '")');
|
|
1925
|
+
}
|
|
1926
|
+
const obj_technicalEmail = obj.technicalEmail;
|
|
1927
|
+
const path_technicalEmail = path + '.technicalEmail';
|
|
1928
|
+
if (typeof obj_technicalEmail !== 'string') {
|
|
1929
|
+
return new TypeError('Expected "string" but received "' + typeof obj_technicalEmail + '" (at "' + path_technicalEmail + '")');
|
|
1930
|
+
}
|
|
1931
|
+
})();
|
|
1932
|
+
return v_error === undefined ? null : v_error;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
function validate$h(obj, path = 'AppExchangeListingPluginsRepresentation') {
|
|
1936
|
+
const v_error = (() => {
|
|
1937
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1938
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1939
|
+
}
|
|
1940
|
+
const obj_listing_plugins_Carousel = obj.listing_plugins_Carousel;
|
|
1941
|
+
const path_listing_plugins_Carousel = path + '.listing_plugins_Carousel';
|
|
1942
|
+
const referencepath_listing_plugins_CarouselValidationError = validate$r(obj_listing_plugins_Carousel, path_listing_plugins_Carousel);
|
|
1943
|
+
if (referencepath_listing_plugins_CarouselValidationError !== null) {
|
|
1944
|
+
let message = 'Object doesn\'t match AppExchangeCarouselPluginRepresentation (at "' + path_listing_plugins_Carousel + '")\n';
|
|
1945
|
+
message += referencepath_listing_plugins_CarouselValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1946
|
+
return new TypeError(message);
|
|
1947
|
+
}
|
|
1948
|
+
const obj_listing_plugins_Content = obj.listing_plugins_Content;
|
|
1949
|
+
const path_listing_plugins_Content = path + '.listing_plugins_Content';
|
|
1950
|
+
const referencepath_listing_plugins_ContentValidationError = validate$o(obj_listing_plugins_Content, path_listing_plugins_Content);
|
|
1951
|
+
if (referencepath_listing_plugins_ContentValidationError !== null) {
|
|
1952
|
+
let message = 'Object doesn\'t match AppExchangeContentPluginRepresentation (at "' + path_listing_plugins_Content + '")\n';
|
|
1953
|
+
message += referencepath_listing_plugins_ContentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1954
|
+
return new TypeError(message);
|
|
1955
|
+
}
|
|
1956
|
+
const obj_listing_plugins_Demo = obj.listing_plugins_Demo;
|
|
1957
|
+
const path_listing_plugins_Demo = path + '.listing_plugins_Demo';
|
|
1958
|
+
const referencepath_listing_plugins_DemoValidationError = validate$m(obj_listing_plugins_Demo, path_listing_plugins_Demo);
|
|
1959
|
+
if (referencepath_listing_plugins_DemoValidationError !== null) {
|
|
1960
|
+
let message = 'Object doesn\'t match AppExchangeDemoPluginRepresentation (at "' + path_listing_plugins_Demo + '")\n';
|
|
1961
|
+
message += referencepath_listing_plugins_DemoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1962
|
+
return new TypeError(message);
|
|
1963
|
+
}
|
|
1964
|
+
const obj_listing_plugins_LeadTrialInformation = obj.listing_plugins_LeadTrialInformation;
|
|
1965
|
+
const path_listing_plugins_LeadTrialInformation = path + '.listing_plugins_LeadTrialInformation';
|
|
1966
|
+
const referencepath_listing_plugins_LeadTrialInformationValidationError = validate$l(obj_listing_plugins_LeadTrialInformation, path_listing_plugins_LeadTrialInformation);
|
|
1967
|
+
if (referencepath_listing_plugins_LeadTrialInformationValidationError !== null) {
|
|
1968
|
+
let message = 'Object doesn\'t match AppExchangeLeadTrialInformationPluginRepresentation (at "' + path_listing_plugins_LeadTrialInformation + '")\n';
|
|
1969
|
+
message += referencepath_listing_plugins_LeadTrialInformationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1970
|
+
return new TypeError(message);
|
|
1971
|
+
}
|
|
1972
|
+
const obj_listing_plugins_LogoSet = obj.listing_plugins_LogoSet;
|
|
1973
|
+
const path_listing_plugins_LogoSet = path + '.listing_plugins_LogoSet';
|
|
1974
|
+
const referencepath_listing_plugins_LogoSetValidationError = validate$j(obj_listing_plugins_LogoSet, path_listing_plugins_LogoSet);
|
|
1975
|
+
if (referencepath_listing_plugins_LogoSetValidationError !== null) {
|
|
1976
|
+
let message = 'Object doesn\'t match AppExchangeLogoSetPluginRepresentation (at "' + path_listing_plugins_LogoSet + '")\n';
|
|
1977
|
+
message += referencepath_listing_plugins_LogoSetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1978
|
+
return new TypeError(message);
|
|
1979
|
+
}
|
|
1980
|
+
if (obj.listing_plugins_SupportInformation !== undefined) {
|
|
1981
|
+
const obj_listing_plugins_SupportInformation = obj.listing_plugins_SupportInformation;
|
|
1982
|
+
const path_listing_plugins_SupportInformation = path + '.listing_plugins_SupportInformation';
|
|
1983
|
+
const referencepath_listing_plugins_SupportInformationValidationError = validate$i(obj_listing_plugins_SupportInformation, path_listing_plugins_SupportInformation);
|
|
1984
|
+
if (referencepath_listing_plugins_SupportInformationValidationError !== null) {
|
|
1985
|
+
let message = 'Object doesn\'t match AppExchangeSupportInformationPluginRepresentation (at "' + path_listing_plugins_SupportInformation + '")\n';
|
|
1986
|
+
message += referencepath_listing_plugins_SupportInformationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1987
|
+
return new TypeError(message);
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
})();
|
|
1991
|
+
return v_error === undefined ? null : v_error;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
var DiscriminatorValues$1;
|
|
1995
|
+
(function (DiscriminatorValues) {
|
|
1996
|
+
DiscriminatorValues["freemium"] = "freemium";
|
|
1997
|
+
DiscriminatorValues["paid_w_checkout"] = "paid_w_checkout";
|
|
1998
|
+
DiscriminatorValues["paid"] = "paid";
|
|
1999
|
+
DiscriminatorValues["free_to_install"] = "free_to_install";
|
|
2000
|
+
DiscriminatorValues["free"] = "free";
|
|
2001
|
+
})(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
|
|
2002
|
+
function validate$g(obj, path = 'AppExchangePricingModelRepresentation') {
|
|
2003
|
+
const v_error = (() => {
|
|
2004
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2005
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2006
|
+
}
|
|
2007
|
+
const obj_priceModelType = obj.priceModelType;
|
|
2008
|
+
const path_priceModelType = path + '.priceModelType';
|
|
2009
|
+
if (typeof obj_priceModelType !== 'string') {
|
|
2010
|
+
return new TypeError('Expected "string" but received "' + typeof obj_priceModelType + '" (at "' + path_priceModelType + '")');
|
|
2011
|
+
}
|
|
2012
|
+
})();
|
|
2013
|
+
return v_error === undefined ? null : v_error;
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
function validate$f(obj, path = 'AppExchangePricingRepresentation') {
|
|
2017
|
+
const v_error = (() => {
|
|
2018
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2019
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2020
|
+
}
|
|
2021
|
+
const obj_checkoutEnabledDate = obj.checkoutEnabledDate;
|
|
2022
|
+
const path_checkoutEnabledDate = path + '.checkoutEnabledDate';
|
|
2023
|
+
if (typeof obj_checkoutEnabledDate !== 'string') {
|
|
2024
|
+
return new TypeError('Expected "string" but received "' + typeof obj_checkoutEnabledDate + '" (at "' + path_checkoutEnabledDate + '")');
|
|
2025
|
+
}
|
|
2026
|
+
const obj_commerceExternalId = obj.commerceExternalId;
|
|
2027
|
+
const path_commerceExternalId = path + '.commerceExternalId';
|
|
2028
|
+
if (typeof obj_commerceExternalId !== 'string') {
|
|
2029
|
+
return new TypeError('Expected "string" but received "' + typeof obj_commerceExternalId + '" (at "' + path_commerceExternalId + '")');
|
|
2030
|
+
}
|
|
2031
|
+
const obj_externalId = obj.externalId;
|
|
2032
|
+
const path_externalId = path + '.externalId';
|
|
2033
|
+
if (typeof obj_externalId !== 'string') {
|
|
2034
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
2035
|
+
}
|
|
2036
|
+
const obj_id = obj.id;
|
|
2037
|
+
const path_id = path + '.id';
|
|
2038
|
+
if (typeof obj_id !== 'string') {
|
|
2039
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2040
|
+
}
|
|
2041
|
+
const obj_isPublic = obj.isPublic;
|
|
2042
|
+
const path_isPublic = path + '.isPublic';
|
|
2043
|
+
if (typeof obj_isPublic !== 'boolean') {
|
|
2044
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPublic + '" (at "' + path_isPublic + '")');
|
|
2045
|
+
}
|
|
2046
|
+
const obj_legacyForcedPricing = obj.legacyForcedPricing;
|
|
2047
|
+
const path_legacyForcedPricing = path + '.legacyForcedPricing';
|
|
2048
|
+
if (typeof obj_legacyForcedPricing !== 'string') {
|
|
2049
|
+
return new TypeError('Expected "string" but received "' + typeof obj_legacyForcedPricing + '" (at "' + path_legacyForcedPricing + '")');
|
|
2050
|
+
}
|
|
2051
|
+
const obj_listingId = obj.listingId;
|
|
2052
|
+
const path_listingId = path + '.listingId';
|
|
2053
|
+
if (typeof obj_listingId !== 'string') {
|
|
2054
|
+
return new TypeError('Expected "string" but received "' + typeof obj_listingId + '" (at "' + path_listingId + '")');
|
|
2055
|
+
}
|
|
2056
|
+
const obj_managedPackage = obj.managedPackage;
|
|
2057
|
+
const path_managedPackage = path + '.managedPackage';
|
|
2058
|
+
if (typeof obj_managedPackage !== 'boolean') {
|
|
2059
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_managedPackage + '" (at "' + path_managedPackage + '")');
|
|
2060
|
+
}
|
|
2061
|
+
const obj_model = obj.model;
|
|
2062
|
+
const path_model = path + '.model';
|
|
2063
|
+
const referencepath_modelValidationError = validate$g(obj_model, path_model);
|
|
2064
|
+
if (referencepath_modelValidationError !== null) {
|
|
2065
|
+
let message = 'Object doesn\'t match AppExchangePricingModelRepresentation (at "' + path_model + '")\n';
|
|
2066
|
+
message += referencepath_modelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2067
|
+
return new TypeError(message);
|
|
2068
|
+
}
|
|
2069
|
+
const obj_org62AccountId = obj.org62AccountId;
|
|
2070
|
+
const path_org62AccountId = path + '.org62AccountId';
|
|
2071
|
+
if (typeof obj_org62AccountId !== 'string') {
|
|
2072
|
+
return new TypeError('Expected "string" but received "' + typeof obj_org62AccountId + '" (at "' + path_org62AccountId + '")');
|
|
2073
|
+
}
|
|
2074
|
+
const obj_priceModelType = obj.priceModelType;
|
|
2075
|
+
const path_priceModelType = path + '.priceModelType';
|
|
2076
|
+
if (typeof obj_priceModelType !== 'string') {
|
|
2077
|
+
return new TypeError('Expected "string" but received "' + typeof obj_priceModelType + '" (at "' + path_priceModelType + '")');
|
|
2078
|
+
}
|
|
2079
|
+
const obj_sourceId = obj.sourceId;
|
|
2080
|
+
const path_sourceId = path + '.sourceId';
|
|
2081
|
+
if (typeof obj_sourceId !== 'string') {
|
|
2082
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceId + '" (at "' + path_sourceId + '")');
|
|
2083
|
+
}
|
|
2084
|
+
const obj_sourceRecordType = obj.sourceRecordType;
|
|
2085
|
+
const path_sourceRecordType = path + '.sourceRecordType';
|
|
2086
|
+
if (typeof obj_sourceRecordType !== 'string') {
|
|
2087
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceRecordType + '" (at "' + path_sourceRecordType + '")');
|
|
2088
|
+
}
|
|
2089
|
+
const obj_status = obj.status;
|
|
2090
|
+
const path_status = path + '.status';
|
|
2091
|
+
if (typeof obj_status !== 'string') {
|
|
2092
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
2093
|
+
}
|
|
2094
|
+
})();
|
|
2095
|
+
return v_error === undefined ? null : v_error;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
function validate$e(obj, path = 'AppExchangeForcePublisherExtensionRepresentation') {
|
|
2099
|
+
const v_error = (() => {
|
|
2100
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2101
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2102
|
+
}
|
|
2103
|
+
const obj_agreedTermsId = obj.agreedTermsId;
|
|
2104
|
+
const path_agreedTermsId = path + '.agreedTermsId';
|
|
2105
|
+
if (typeof obj_agreedTermsId !== 'string') {
|
|
2106
|
+
return new TypeError('Expected "string" but received "' + typeof obj_agreedTermsId + '" (at "' + path_agreedTermsId + '")');
|
|
2107
|
+
}
|
|
2108
|
+
const obj_allowBrandedTerms = obj.allowBrandedTerms;
|
|
2109
|
+
const path_allowBrandedTerms = path + '.allowBrandedTerms';
|
|
2110
|
+
if (typeof obj_allowBrandedTerms !== 'boolean') {
|
|
2111
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_allowBrandedTerms + '" (at "' + path_allowBrandedTerms + '")');
|
|
2112
|
+
}
|
|
2113
|
+
const obj_billingAccountId = obj.billingAccountId;
|
|
2114
|
+
const path_billingAccountId = path + '.billingAccountId';
|
|
2115
|
+
if (typeof obj_billingAccountId !== 'string') {
|
|
2116
|
+
return new TypeError('Expected "string" but received "' + typeof obj_billingAccountId + '" (at "' + path_billingAccountId + '")');
|
|
2117
|
+
}
|
|
2118
|
+
const obj_businessApprovalWhitelist = obj.businessApprovalWhitelist;
|
|
2119
|
+
const path_businessApprovalWhitelist = path + '.businessApprovalWhitelist';
|
|
2120
|
+
if (typeof obj_businessApprovalWhitelist !== 'boolean') {
|
|
2121
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_businessApprovalWhitelist + '" (at "' + path_businessApprovalWhitelist + '")');
|
|
2122
|
+
}
|
|
2123
|
+
const obj_checkoutSignUpStatus = obj.checkoutSignUpStatus;
|
|
2124
|
+
const path_checkoutSignUpStatus = path + '.checkoutSignUpStatus';
|
|
2125
|
+
if (typeof obj_checkoutSignUpStatus !== 'string') {
|
|
2126
|
+
return new TypeError('Expected "string" but received "' + typeof obj_checkoutSignUpStatus + '" (at "' + path_checkoutSignUpStatus + '")');
|
|
2127
|
+
}
|
|
2128
|
+
const obj_checkoutStatusChangeDate = obj.checkoutStatusChangeDate;
|
|
2129
|
+
const path_checkoutStatusChangeDate = path + '.checkoutStatusChangeDate';
|
|
2130
|
+
if (typeof obj_checkoutStatusChangeDate !== 'string') {
|
|
2131
|
+
return new TypeError('Expected "string" but received "' + typeof obj_checkoutStatusChangeDate + '" (at "' + path_checkoutStatusChangeDate + '")');
|
|
2132
|
+
}
|
|
2133
|
+
const obj_complianceQuestionnaireCompletedDate = obj.complianceQuestionnaireCompletedDate;
|
|
2134
|
+
const path_complianceQuestionnaireCompletedDate = path + '.complianceQuestionnaireCompletedDate';
|
|
2135
|
+
if (typeof obj_complianceQuestionnaireCompletedDate !== 'string') {
|
|
2136
|
+
return new TypeError('Expected "string" but received "' + typeof obj_complianceQuestionnaireCompletedDate + '" (at "' + path_complianceQuestionnaireCompletedDate + '")');
|
|
2137
|
+
}
|
|
2138
|
+
const obj_fullforceCertification = obj.fullforceCertification;
|
|
2139
|
+
const path_fullforceCertification = path + '.fullforceCertification';
|
|
2140
|
+
if (typeof obj_fullforceCertification !== 'string') {
|
|
2141
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fullforceCertification + '" (at "' + path_fullforceCertification + '")');
|
|
2142
|
+
}
|
|
2143
|
+
const obj_fullforceMasters = obj.fullforceMasters;
|
|
2144
|
+
const path_fullforceMasters = path + '.fullforceMasters';
|
|
2145
|
+
if (typeof obj_fullforceMasters !== 'string') {
|
|
2146
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fullforceMasters + '" (at "' + path_fullforceMasters + '")');
|
|
2147
|
+
}
|
|
2148
|
+
const obj_isvClickthroughDateTime = obj.isvClickthroughDateTime;
|
|
2149
|
+
const path_isvClickthroughDateTime = path + '.isvClickthroughDateTime';
|
|
2150
|
+
if (typeof obj_isvClickthroughDateTime !== 'string') {
|
|
2151
|
+
return new TypeError('Expected "string" but received "' + typeof obj_isvClickthroughDateTime + '" (at "' + path_isvClickthroughDateTime + '")');
|
|
2152
|
+
}
|
|
2153
|
+
const obj_isvClickthroughName = obj.isvClickthroughName;
|
|
2154
|
+
const path_isvClickthroughName = path + '.isvClickthroughName';
|
|
2155
|
+
if (typeof obj_isvClickthroughName !== 'string') {
|
|
2156
|
+
return new TypeError('Expected "string" but received "' + typeof obj_isvClickthroughName + '" (at "' + path_isvClickthroughName + '")');
|
|
2157
|
+
}
|
|
2158
|
+
const obj_isvClickthroughUserId = obj.isvClickthroughUserId;
|
|
2159
|
+
const path_isvClickthroughUserId = path + '.isvClickthroughUserId';
|
|
2160
|
+
if (typeof obj_isvClickthroughUserId !== 'string') {
|
|
2161
|
+
return new TypeError('Expected "string" but received "' + typeof obj_isvClickthroughUserId + '" (at "' + path_isvClickthroughUserId + '")');
|
|
2162
|
+
}
|
|
2163
|
+
const obj_logoUrl = obj.logoUrl;
|
|
2164
|
+
const path_logoUrl = path + '.logoUrl';
|
|
2165
|
+
if (typeof obj_logoUrl !== 'string') {
|
|
2166
|
+
return new TypeError('Expected "string" but received "' + typeof obj_logoUrl + '" (at "' + path_logoUrl + '")');
|
|
2167
|
+
}
|
|
2168
|
+
const obj_orgId = obj.orgId;
|
|
2169
|
+
const path_orgId = path + '.orgId';
|
|
2170
|
+
if (typeof obj_orgId !== 'string') {
|
|
2171
|
+
return new TypeError('Expected "string" but received "' + typeof obj_orgId + '" (at "' + path_orgId + '")');
|
|
2172
|
+
}
|
|
2173
|
+
const obj_siProgramEmergingProductsCount = obj.siProgramEmergingProductsCount;
|
|
2174
|
+
const path_siProgramEmergingProductsCount = path + '.siProgramEmergingProductsCount';
|
|
2175
|
+
if (typeof obj_siProgramEmergingProductsCount !== 'number' || (typeof obj_siProgramEmergingProductsCount === 'number' && Math.floor(obj_siProgramEmergingProductsCount) !== obj_siProgramEmergingProductsCount)) {
|
|
2176
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_siProgramEmergingProductsCount + '" (at "' + path_siProgramEmergingProductsCount + '")');
|
|
2177
|
+
}
|
|
2178
|
+
const obj_siProgramFullforceCount = obj.siProgramFullforceCount;
|
|
2179
|
+
const path_siProgramFullforceCount = path + '.siProgramFullforceCount';
|
|
2180
|
+
if (typeof obj_siProgramFullforceCount !== 'number' || (typeof obj_siProgramFullforceCount === 'number' && Math.floor(obj_siProgramFullforceCount) !== obj_siProgramFullforceCount)) {
|
|
2181
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_siProgramFullforceCount + '" (at "' + path_siProgramFullforceCount + '")');
|
|
2182
|
+
}
|
|
2183
|
+
const obj_stripeAccount = obj.stripeAccount;
|
|
2184
|
+
const path_stripeAccount = path + '.stripeAccount';
|
|
2185
|
+
if (typeof obj_stripeAccount !== 'string') {
|
|
2186
|
+
return new TypeError('Expected "string" but received "' + typeof obj_stripeAccount + '" (at "' + path_stripeAccount + '")');
|
|
2187
|
+
}
|
|
2188
|
+
const obj_stripeCheckoutSignupStatus = obj.stripeCheckoutSignupStatus;
|
|
2189
|
+
const path_stripeCheckoutSignupStatus = path + '.stripeCheckoutSignupStatus';
|
|
2190
|
+
if (typeof obj_stripeCheckoutSignupStatus !== 'string') {
|
|
2191
|
+
return new TypeError('Expected "string" but received "' + typeof obj_stripeCheckoutSignupStatus + '" (at "' + path_stripeCheckoutSignupStatus + '")');
|
|
2192
|
+
}
|
|
2193
|
+
const obj_vatNumber = obj.vatNumber;
|
|
2194
|
+
const path_vatNumber = path + '.vatNumber';
|
|
2195
|
+
if (typeof obj_vatNumber !== 'string') {
|
|
2196
|
+
return new TypeError('Expected "string" but received "' + typeof obj_vatNumber + '" (at "' + path_vatNumber + '")');
|
|
2197
|
+
}
|
|
2198
|
+
obj.vatPercentage;
|
|
2199
|
+
})();
|
|
2200
|
+
return v_error === undefined ? null : v_error;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
function validate$d(obj, path = 'AppExchangePublisherExtensionsRepresentation') {
|
|
2204
|
+
const v_error = (() => {
|
|
2205
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2206
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2207
|
+
}
|
|
2208
|
+
const obj_publisher_extensions_force_Publisher = obj.publisher_extensions_force_Publisher;
|
|
2209
|
+
const path_publisher_extensions_force_Publisher = path + '.publisher_extensions_force_Publisher';
|
|
2210
|
+
const referencepath_publisher_extensions_force_PublisherValidationError = validate$e(obj_publisher_extensions_force_Publisher, path_publisher_extensions_force_Publisher);
|
|
2211
|
+
if (referencepath_publisher_extensions_force_PublisherValidationError !== null) {
|
|
2212
|
+
let message = 'Object doesn\'t match AppExchangeForcePublisherExtensionRepresentation (at "' + path_publisher_extensions_force_Publisher + '")\n';
|
|
2213
|
+
message += referencepath_publisher_extensions_force_PublisherValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2214
|
+
return new TypeError(message);
|
|
2215
|
+
}
|
|
2216
|
+
})();
|
|
2217
|
+
return v_error === undefined ? null : v_error;
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
function validate$c(obj, path = 'AppExchangePublisherLogoItemRepresentation') {
|
|
2221
|
+
const v_error = (() => {
|
|
2222
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2223
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2224
|
+
}
|
|
2225
|
+
const obj_externalId = obj.externalId;
|
|
2226
|
+
const path_externalId = path + '.externalId';
|
|
2227
|
+
if (typeof obj_externalId !== 'string') {
|
|
2228
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
2229
|
+
}
|
|
2230
|
+
const obj_logoType = obj.logoType;
|
|
2231
|
+
const path_logoType = path + '.logoType';
|
|
2232
|
+
if (typeof obj_logoType !== 'string') {
|
|
2233
|
+
return new TypeError('Expected "string" but received "' + typeof obj_logoType + '" (at "' + path_logoType + '")');
|
|
2234
|
+
}
|
|
2235
|
+
const obj_mediaId = obj.mediaId;
|
|
2236
|
+
const path_mediaId = path + '.mediaId';
|
|
2237
|
+
if (typeof obj_mediaId !== 'string') {
|
|
2238
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mediaId + '" (at "' + path_mediaId + '")');
|
|
2239
|
+
}
|
|
2240
|
+
})();
|
|
2241
|
+
return v_error === undefined ? null : v_error;
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
function validate$b(obj, path = 'AppExchangePublisherLogoRepresentation') {
|
|
2245
|
+
const v_error = (() => {
|
|
2246
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2247
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2248
|
+
}
|
|
2249
|
+
const obj_items = obj.items;
|
|
2250
|
+
const path_items = path + '.items';
|
|
2251
|
+
if (!ArrayIsArray(obj_items)) {
|
|
2252
|
+
return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
|
|
2253
|
+
}
|
|
2254
|
+
for (let i = 0; i < obj_items.length; i++) {
|
|
2255
|
+
const obj_items_item = obj_items[i];
|
|
2256
|
+
const path_items_item = path_items + '[' + i + ']';
|
|
2257
|
+
const referencepath_items_itemValidationError = validate$c(obj_items_item, path_items_item);
|
|
2258
|
+
if (referencepath_items_itemValidationError !== null) {
|
|
2259
|
+
let message = 'Object doesn\'t match AppExchangePublisherLogoItemRepresentation (at "' + path_items_item + '")\n';
|
|
2260
|
+
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2261
|
+
return new TypeError(message);
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
})();
|
|
2265
|
+
return v_error === undefined ? null : v_error;
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
function validate$a(obj, path = 'AppExchangePublisherPluginsRepresentation') {
|
|
2269
|
+
const v_error = (() => {
|
|
2270
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2271
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2272
|
+
}
|
|
2273
|
+
const obj_publisher_plugins_PublisherLogo = obj.publisher_plugins_PublisherLogo;
|
|
2274
|
+
const path_publisher_plugins_PublisherLogo = path + '.publisher_plugins_PublisherLogo';
|
|
2275
|
+
const referencepath_publisher_plugins_PublisherLogoValidationError = validate$b(obj_publisher_plugins_PublisherLogo, path_publisher_plugins_PublisherLogo);
|
|
2276
|
+
if (referencepath_publisher_plugins_PublisherLogoValidationError !== null) {
|
|
2277
|
+
let message = 'Object doesn\'t match AppExchangePublisherLogoRepresentation (at "' + path_publisher_plugins_PublisherLogo + '")\n';
|
|
2278
|
+
message += referencepath_publisher_plugins_PublisherLogoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2279
|
+
return new TypeError(message);
|
|
2280
|
+
}
|
|
2281
|
+
})();
|
|
2282
|
+
return v_error === undefined ? null : v_error;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
function validate$9(obj, path = 'AppExchangePublisherRepresentation') {
|
|
2286
|
+
const v_error = (() => {
|
|
2287
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2288
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2289
|
+
}
|
|
2290
|
+
const obj_active = obj.active;
|
|
2291
|
+
const path_active = path + '.active';
|
|
2292
|
+
if (typeof obj_active !== 'boolean') {
|
|
2293
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_active + '" (at "' + path_active + '")');
|
|
2294
|
+
}
|
|
2295
|
+
const obj_businessEmail = obj.businessEmail;
|
|
2296
|
+
const path_businessEmail = path + '.businessEmail';
|
|
2297
|
+
if (typeof obj_businessEmail !== 'string') {
|
|
2298
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessEmail + '" (at "' + path_businessEmail + '")');
|
|
2299
|
+
}
|
|
2300
|
+
const obj_country = obj.country;
|
|
2301
|
+
const path_country = path + '.country';
|
|
2302
|
+
if (typeof obj_country !== 'string') {
|
|
2303
|
+
return new TypeError('Expected "string" but received "' + typeof obj_country + '" (at "' + path_country + '")');
|
|
2304
|
+
}
|
|
2305
|
+
const obj_deleted = obj.deleted;
|
|
2306
|
+
const path_deleted = path + '.deleted';
|
|
2307
|
+
if (typeof obj_deleted !== 'boolean') {
|
|
2308
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_deleted + '" (at "' + path_deleted + '")');
|
|
2309
|
+
}
|
|
2310
|
+
const obj_description = obj.description;
|
|
2311
|
+
const path_description = path + '.description';
|
|
2312
|
+
if (typeof obj_description !== 'string') {
|
|
2313
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2314
|
+
}
|
|
2315
|
+
const obj_email = obj.email;
|
|
2316
|
+
const path_email = path + '.email';
|
|
2317
|
+
if (typeof obj_email !== 'string') {
|
|
2318
|
+
return new TypeError('Expected "string" but received "' + typeof obj_email + '" (at "' + path_email + '")');
|
|
2319
|
+
}
|
|
2320
|
+
const obj_employees = obj.employees;
|
|
2321
|
+
const path_employees = path + '.employees';
|
|
2322
|
+
if (typeof obj_employees !== 'number' || (typeof obj_employees === 'number' && Math.floor(obj_employees) !== obj_employees)) {
|
|
2323
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_employees + '" (at "' + path_employees + '")');
|
|
2324
|
+
}
|
|
2325
|
+
const obj_extensions = obj.extensions;
|
|
2326
|
+
const path_extensions = path + '.extensions';
|
|
2327
|
+
const referencepath_extensionsValidationError = validate$d(obj_extensions, path_extensions);
|
|
2328
|
+
if (referencepath_extensionsValidationError !== null) {
|
|
2329
|
+
let message = 'Object doesn\'t match AppExchangePublisherExtensionsRepresentation (at "' + path_extensions + '")\n';
|
|
2330
|
+
message += referencepath_extensionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2331
|
+
return new TypeError(message);
|
|
2332
|
+
}
|
|
2333
|
+
const obj_externalId = obj.externalId;
|
|
2334
|
+
const path_externalId = path + '.externalId';
|
|
2335
|
+
if (typeof obj_externalId !== 'string') {
|
|
2336
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
2337
|
+
}
|
|
2338
|
+
const obj_hqLocation = obj.hqLocation;
|
|
2339
|
+
const path_hqLocation = path + '.hqLocation';
|
|
2340
|
+
if (typeof obj_hqLocation !== 'string') {
|
|
2341
|
+
return new TypeError('Expected "string" but received "' + typeof obj_hqLocation + '" (at "' + path_hqLocation + '")');
|
|
2342
|
+
}
|
|
2343
|
+
const obj_id = obj.id;
|
|
2344
|
+
const path_id = path + '.id';
|
|
2345
|
+
if (typeof obj_id !== 'string') {
|
|
2346
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2347
|
+
}
|
|
2348
|
+
const obj_marketingEmail = obj.marketingEmail;
|
|
2349
|
+
const path_marketingEmail = path + '.marketingEmail';
|
|
2350
|
+
if (typeof obj_marketingEmail !== 'string') {
|
|
2351
|
+
return new TypeError('Expected "string" but received "' + typeof obj_marketingEmail + '" (at "' + path_marketingEmail + '")');
|
|
2352
|
+
}
|
|
2353
|
+
const obj_name = obj.name;
|
|
2354
|
+
const path_name = path + '.name';
|
|
2355
|
+
if (typeof obj_name !== 'string') {
|
|
2356
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2357
|
+
}
|
|
2358
|
+
const obj_org62AccountId = obj.org62AccountId;
|
|
2359
|
+
const path_org62AccountId = path + '.org62AccountId';
|
|
2360
|
+
if (typeof obj_org62AccountId !== 'string') {
|
|
2361
|
+
return new TypeError('Expected "string" but received "' + typeof obj_org62AccountId + '" (at "' + path_org62AccountId + '")');
|
|
2362
|
+
}
|
|
2363
|
+
const obj_phoneNumber = obj.phoneNumber;
|
|
2364
|
+
const path_phoneNumber = path + '.phoneNumber';
|
|
2365
|
+
if (typeof obj_phoneNumber !== 'string') {
|
|
2366
|
+
return new TypeError('Expected "string" but received "' + typeof obj_phoneNumber + '" (at "' + path_phoneNumber + '")');
|
|
2367
|
+
}
|
|
2368
|
+
const obj_plugins = obj.plugins;
|
|
2369
|
+
const path_plugins = path + '.plugins';
|
|
2370
|
+
const referencepath_pluginsValidationError = validate$a(obj_plugins, path_plugins);
|
|
2371
|
+
if (referencepath_pluginsValidationError !== null) {
|
|
2372
|
+
let message = 'Object doesn\'t match AppExchangePublisherPluginsRepresentation (at "' + path_plugins + '")\n';
|
|
2373
|
+
message += referencepath_pluginsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2374
|
+
return new TypeError(message);
|
|
2375
|
+
}
|
|
2376
|
+
const obj_securityReviewEmail = obj.securityReviewEmail;
|
|
2377
|
+
const path_securityReviewEmail = path + '.securityReviewEmail';
|
|
2378
|
+
if (typeof obj_securityReviewEmail !== 'string') {
|
|
2379
|
+
return new TypeError('Expected "string" but received "' + typeof obj_securityReviewEmail + '" (at "' + path_securityReviewEmail + '")');
|
|
2380
|
+
}
|
|
2381
|
+
const obj_technicalEmail = obj.technicalEmail;
|
|
2382
|
+
const path_technicalEmail = path + '.technicalEmail';
|
|
2383
|
+
if (typeof obj_technicalEmail !== 'string') {
|
|
2384
|
+
return new TypeError('Expected "string" but received "' + typeof obj_technicalEmail + '" (at "' + path_technicalEmail + '")');
|
|
2385
|
+
}
|
|
2386
|
+
const obj_userCreatedAt = obj.userCreatedAt;
|
|
2387
|
+
const path_userCreatedAt = path + '.userCreatedAt';
|
|
2388
|
+
if (typeof obj_userCreatedAt !== 'string') {
|
|
2389
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userCreatedAt + '" (at "' + path_userCreatedAt + '")');
|
|
2390
|
+
}
|
|
2391
|
+
const obj_userUpdatedAt = obj.userUpdatedAt;
|
|
2392
|
+
const path_userUpdatedAt = path + '.userUpdatedAt';
|
|
2393
|
+
if (typeof obj_userUpdatedAt !== 'string') {
|
|
2394
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userUpdatedAt + '" (at "' + path_userUpdatedAt + '")');
|
|
2395
|
+
}
|
|
2396
|
+
const obj_website = obj.website;
|
|
2397
|
+
const path_website = path + '.website';
|
|
2398
|
+
if (typeof obj_website !== 'string') {
|
|
2399
|
+
return new TypeError('Expected "string" but received "' + typeof obj_website + '" (at "' + path_website + '")');
|
|
2400
|
+
}
|
|
2401
|
+
const obj_yearFounded = obj.yearFounded;
|
|
2402
|
+
const path_yearFounded = path + '.yearFounded';
|
|
2403
|
+
if (typeof obj_yearFounded !== 'number' || (typeof obj_yearFounded === 'number' && Math.floor(obj_yearFounded) !== obj_yearFounded)) {
|
|
2404
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_yearFounded + '" (at "' + path_yearFounded + '")');
|
|
2405
|
+
}
|
|
2406
|
+
})();
|
|
2407
|
+
return v_error === undefined ? null : v_error;
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
function validate$8(obj, path = 'AppExchangeListingReviewsSummaryRepresentation') {
|
|
2411
|
+
const v_error = (() => {
|
|
2412
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2413
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2414
|
+
}
|
|
2415
|
+
obj.averageRating;
|
|
2416
|
+
const obj_externalId = obj.externalId;
|
|
2417
|
+
const path_externalId = path + '.externalId';
|
|
2418
|
+
if (typeof obj_externalId !== 'string') {
|
|
2419
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
2420
|
+
}
|
|
2421
|
+
const obj_id = obj.id;
|
|
2422
|
+
const path_id = path + '.id';
|
|
2423
|
+
if (typeof obj_id !== 'string') {
|
|
2424
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2425
|
+
}
|
|
2426
|
+
const obj_listing = obj.listing;
|
|
2427
|
+
const path_listing = path + '.listing';
|
|
2428
|
+
if (typeof obj_listing !== 'string') {
|
|
2429
|
+
return new TypeError('Expected "string" but received "' + typeof obj_listing + '" (at "' + path_listing + '")');
|
|
2430
|
+
}
|
|
2431
|
+
const obj_reviewCount = obj.reviewCount;
|
|
2432
|
+
const path_reviewCount = path + '.reviewCount';
|
|
2433
|
+
if (typeof obj_reviewCount !== 'number' || (typeof obj_reviewCount === 'number' && Math.floor(obj_reviewCount) !== obj_reviewCount)) {
|
|
2434
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_reviewCount + '" (at "' + path_reviewCount + '")');
|
|
2435
|
+
}
|
|
2436
|
+
})();
|
|
2437
|
+
return v_error === undefined ? null : v_error;
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
function validate$7(obj, path = 'AppExchangeListingSecurityReviewRepresentation') {
|
|
2441
|
+
const v_error = (() => {
|
|
2442
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2443
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2444
|
+
}
|
|
2445
|
+
const obj_approvalDate = obj.approvalDate;
|
|
2446
|
+
const path_approvalDate = path + '.approvalDate';
|
|
2447
|
+
if (typeof obj_approvalDate !== 'string') {
|
|
2448
|
+
return new TypeError('Expected "string" but received "' + typeof obj_approvalDate + '" (at "' + path_approvalDate + '")');
|
|
2449
|
+
}
|
|
2450
|
+
const obj_lastApprovedVersion = obj.lastApprovedVersion;
|
|
2451
|
+
const path_lastApprovedVersion = path + '.lastApprovedVersion';
|
|
2452
|
+
if (typeof obj_lastApprovedVersion !== 'string') {
|
|
2453
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastApprovedVersion + '" (at "' + path_lastApprovedVersion + '")');
|
|
2454
|
+
}
|
|
2455
|
+
})();
|
|
2456
|
+
return v_error === undefined ? null : v_error;
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
var DiscriminatorValues;
|
|
2460
|
+
(function (DiscriminatorValues) {
|
|
2461
|
+
DiscriminatorValues["force_Package"] = "force_Package";
|
|
2462
|
+
DiscriminatorValues["tableau_Accelerator"] = "tableau_Accelerator";
|
|
2463
|
+
DiscriminatorValues["force_Api"] = "force_Api";
|
|
2464
|
+
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
2465
|
+
function validate$6(obj, path = 'AppExchangeListingSolutionDetailRepresentation') {
|
|
2466
|
+
const v_error = (() => {
|
|
2467
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2468
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2469
|
+
}
|
|
2470
|
+
const obj_solutionTechnology = obj.solutionTechnology;
|
|
2471
|
+
const path_solutionTechnology = path + '.solutionTechnology';
|
|
2472
|
+
if (typeof obj_solutionTechnology !== 'string') {
|
|
2473
|
+
return new TypeError('Expected "string" but received "' + typeof obj_solutionTechnology + '" (at "' + path_solutionTechnology + '")');
|
|
2474
|
+
}
|
|
2475
|
+
})();
|
|
2476
|
+
return v_error === undefined ? null : v_error;
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
function validate$5(obj, path = 'AppExchangeListingSolutionRepresentation') {
|
|
2480
|
+
const v_error = (() => {
|
|
2481
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2482
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2483
|
+
}
|
|
2484
|
+
const obj_externalId = obj.externalId;
|
|
2485
|
+
const path_externalId = path + '.externalId';
|
|
2486
|
+
if (typeof obj_externalId !== 'string') {
|
|
2487
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalId + '" (at "' + path_externalId + '")');
|
|
2488
|
+
}
|
|
2489
|
+
const obj_id = obj.id;
|
|
2490
|
+
const path_id = path + '.id';
|
|
2491
|
+
if (typeof obj_id !== 'string') {
|
|
2492
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2493
|
+
}
|
|
2494
|
+
const obj_name = obj.name;
|
|
2495
|
+
const path_name = path + '.name';
|
|
2496
|
+
if (typeof obj_name !== 'string') {
|
|
2497
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2498
|
+
}
|
|
2499
|
+
const obj_org62AccountId = obj.org62AccountId;
|
|
2500
|
+
const path_org62AccountId = path + '.org62AccountId';
|
|
2501
|
+
if (typeof obj_org62AccountId !== 'string') {
|
|
2502
|
+
return new TypeError('Expected "string" but received "' + typeof obj_org62AccountId + '" (at "' + path_org62AccountId + '")');
|
|
2503
|
+
}
|
|
2504
|
+
const obj_publisher = obj.publisher;
|
|
2505
|
+
const path_publisher = path + '.publisher';
|
|
2506
|
+
if (typeof obj_publisher !== 'string') {
|
|
2507
|
+
return new TypeError('Expected "string" but received "' + typeof obj_publisher + '" (at "' + path_publisher + '")');
|
|
2508
|
+
}
|
|
2509
|
+
const obj_securityReview = obj.securityReview;
|
|
2510
|
+
const path_securityReview = path + '.securityReview';
|
|
2511
|
+
const referencepath_securityReviewValidationError = validate$7(obj_securityReview, path_securityReview);
|
|
2512
|
+
if (referencepath_securityReviewValidationError !== null) {
|
|
2513
|
+
let message = 'Object doesn\'t match AppExchangeListingSecurityReviewRepresentation (at "' + path_securityReview + '")\n';
|
|
2514
|
+
message += referencepath_securityReviewValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2515
|
+
return new TypeError(message);
|
|
2516
|
+
}
|
|
2517
|
+
const obj_solution = obj.solution;
|
|
2518
|
+
const path_solution = path + '.solution';
|
|
2519
|
+
const referencepath_solutionValidationError = validate$6(obj_solution, path_solution);
|
|
2520
|
+
if (referencepath_solutionValidationError !== null) {
|
|
2521
|
+
let message = 'Object doesn\'t match AppExchangeListingSolutionDetailRepresentation (at "' + path_solution + '")\n';
|
|
2522
|
+
message += referencepath_solutionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2523
|
+
return new TypeError(message);
|
|
2524
|
+
}
|
|
2525
|
+
const obj_technology = obj.technology;
|
|
2526
|
+
const path_technology = path + '.technology';
|
|
2527
|
+
if (typeof obj_technology !== 'string') {
|
|
2528
|
+
return new TypeError('Expected "string" but received "' + typeof obj_technology + '" (at "' + path_technology + '")');
|
|
2529
|
+
}
|
|
2530
|
+
const obj_userCreatedAt = obj.userCreatedAt;
|
|
2531
|
+
const path_userCreatedAt = path + '.userCreatedAt';
|
|
2532
|
+
if (typeof obj_userCreatedAt !== 'string') {
|
|
2533
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userCreatedAt + '" (at "' + path_userCreatedAt + '")');
|
|
2534
|
+
}
|
|
2535
|
+
const obj_userUpdatedAt = obj.userUpdatedAt;
|
|
2536
|
+
const path_userUpdatedAt = path + '.userUpdatedAt';
|
|
2537
|
+
if (typeof obj_userUpdatedAt !== 'string') {
|
|
2538
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userUpdatedAt + '" (at "' + path_userUpdatedAt + '")');
|
|
2539
|
+
}
|
|
2540
|
+
})();
|
|
2541
|
+
return v_error === undefined ? null : v_error;
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
const VERSION$2 = "ee732c9283f6dd2825c6cf9be1c7d76b";
|
|
2545
|
+
function validate$4(obj, path = 'AppExchangeListingDetailsRepresentation') {
|
|
2546
|
+
const v_error = (() => {
|
|
2547
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2548
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2549
|
+
}
|
|
2550
|
+
const obj_businessNeeds = obj.businessNeeds;
|
|
2551
|
+
const path_businessNeeds = path + '.businessNeeds';
|
|
2552
|
+
if (typeof obj_businessNeeds !== 'object' || ArrayIsArray(obj_businessNeeds) || obj_businessNeeds === null) {
|
|
2553
|
+
return new TypeError('Expected "object" but received "' + typeof obj_businessNeeds + '" (at "' + path_businessNeeds + '")');
|
|
2554
|
+
}
|
|
2555
|
+
const obj_businessNeeds_keys = ObjectKeys(obj_businessNeeds);
|
|
2556
|
+
for (let i = 0; i < obj_businessNeeds_keys.length; i++) {
|
|
2557
|
+
const key = obj_businessNeeds_keys[i];
|
|
2558
|
+
const obj_businessNeeds_prop = obj_businessNeeds[key];
|
|
2559
|
+
const path_businessNeeds_prop = path_businessNeeds + '["' + key + '"]';
|
|
2560
|
+
const referencepath_businessNeeds_propValidationError = validate$A(obj_businessNeeds_prop, path_businessNeeds_prop);
|
|
2561
|
+
if (referencepath_businessNeeds_propValidationError !== null) {
|
|
2562
|
+
let message = 'Object doesn\'t match AppExchangeListingCategoriesRepresentation (at "' + path_businessNeeds_prop + '")\n';
|
|
2563
|
+
message += referencepath_businessNeeds_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2564
|
+
return new TypeError(message);
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
const obj_description = obj.description;
|
|
2568
|
+
const path_description = path + '.description';
|
|
2569
|
+
if (typeof obj_description !== 'string') {
|
|
2570
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2571
|
+
}
|
|
2572
|
+
const obj_enableMarketingUse = obj.enableMarketingUse;
|
|
2573
|
+
const path_enableMarketingUse = path + '.enableMarketingUse';
|
|
2574
|
+
if (typeof obj_enableMarketingUse !== 'boolean') {
|
|
2575
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_enableMarketingUse + '" (at "' + path_enableMarketingUse + '")');
|
|
2576
|
+
}
|
|
2577
|
+
const obj_extensions = obj.extensions;
|
|
2578
|
+
const path_extensions = path + '.extensions';
|
|
2579
|
+
const referencepath_extensionsValidationError = validate$u(obj_extensions, path_extensions);
|
|
2580
|
+
if (referencepath_extensionsValidationError !== null) {
|
|
2581
|
+
let message = 'Object doesn\'t match AppExchangeListingExtensionsRepresentation (at "' + path_extensions + '")\n';
|
|
2582
|
+
message += referencepath_extensionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2583
|
+
return new TypeError(message);
|
|
2584
|
+
}
|
|
2585
|
+
const obj_fullDescription = obj.fullDescription;
|
|
2586
|
+
const path_fullDescription = path + '.fullDescription';
|
|
2587
|
+
if (typeof obj_fullDescription !== 'string') {
|
|
2588
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fullDescription + '" (at "' + path_fullDescription + '")');
|
|
2589
|
+
}
|
|
2590
|
+
const obj_isDeleted = obj.isDeleted;
|
|
2591
|
+
const path_isDeleted = path + '.isDeleted';
|
|
2592
|
+
if (typeof obj_isDeleted !== 'boolean') {
|
|
2593
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDeleted + '" (at "' + path_isDeleted + '")');
|
|
2594
|
+
}
|
|
2595
|
+
const obj_isPublic = obj.isPublic;
|
|
2596
|
+
const path_isPublic = path + '.isPublic';
|
|
2597
|
+
if (typeof obj_isPublic !== 'boolean') {
|
|
2598
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPublic + '" (at "' + path_isPublic + '")');
|
|
2599
|
+
}
|
|
2600
|
+
const obj_name = obj.name;
|
|
2601
|
+
const path_name = path + '.name';
|
|
2602
|
+
if (typeof obj_name !== 'string') {
|
|
2603
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2604
|
+
}
|
|
2605
|
+
const obj_oafId = obj.oafId;
|
|
2606
|
+
const path_oafId = path + '.oafId';
|
|
2607
|
+
if (typeof obj_oafId !== 'string') {
|
|
2608
|
+
return new TypeError('Expected "string" but received "' + typeof obj_oafId + '" (at "' + path_oafId + '")');
|
|
2609
|
+
}
|
|
2610
|
+
if (obj.org62AccountId !== undefined) {
|
|
2611
|
+
const obj_org62AccountId = obj.org62AccountId;
|
|
2612
|
+
const path_org62AccountId = path + '.org62AccountId';
|
|
2613
|
+
if (typeof obj_org62AccountId !== 'string') {
|
|
2614
|
+
return new TypeError('Expected "string" but received "' + typeof obj_org62AccountId + '" (at "' + path_org62AccountId + '")');
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
const obj_packageVersionId = obj.packageVersionId;
|
|
2618
|
+
const path_packageVersionId = path + '.packageVersionId';
|
|
2619
|
+
if (typeof obj_packageVersionId !== 'string') {
|
|
2620
|
+
return new TypeError('Expected "string" but received "' + typeof obj_packageVersionId + '" (at "' + path_packageVersionId + '")');
|
|
2621
|
+
}
|
|
2622
|
+
const obj_partnerLookup = obj.partnerLookup;
|
|
2623
|
+
const path_partnerLookup = path + '.partnerLookup';
|
|
2624
|
+
if (typeof obj_partnerLookup !== 'string') {
|
|
2625
|
+
return new TypeError('Expected "string" but received "' + typeof obj_partnerLookup + '" (at "' + path_partnerLookup + '")');
|
|
2626
|
+
}
|
|
2627
|
+
const obj_plugins = obj.plugins;
|
|
2628
|
+
const path_plugins = path + '.plugins';
|
|
2629
|
+
const referencepath_pluginsValidationError = validate$h(obj_plugins, path_plugins);
|
|
2630
|
+
if (referencepath_pluginsValidationError !== null) {
|
|
2631
|
+
let message = 'Object doesn\'t match AppExchangeListingPluginsRepresentation (at "' + path_plugins + '")\n';
|
|
2632
|
+
message += referencepath_pluginsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2633
|
+
return new TypeError(message);
|
|
2634
|
+
}
|
|
2635
|
+
if (obj.pricing !== undefined) {
|
|
2636
|
+
const obj_pricing = obj.pricing;
|
|
2637
|
+
const path_pricing = path + '.pricing';
|
|
2638
|
+
const referencepath_pricingValidationError = validate$f(obj_pricing, path_pricing);
|
|
2639
|
+
if (referencepath_pricingValidationError !== null) {
|
|
2640
|
+
let message = 'Object doesn\'t match AppExchangePricingRepresentation (at "' + path_pricing + '")\n';
|
|
2641
|
+
message += referencepath_pricingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2642
|
+
return new TypeError(message);
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
if (obj.publisher !== undefined) {
|
|
2646
|
+
const obj_publisher = obj.publisher;
|
|
2647
|
+
const path_publisher = path + '.publisher';
|
|
2648
|
+
const referencepath_publisherValidationError = validate$9(obj_publisher, path_publisher);
|
|
2649
|
+
if (referencepath_publisherValidationError !== null) {
|
|
2650
|
+
let message = 'Object doesn\'t match AppExchangePublisherRepresentation (at "' + path_publisher + '")\n';
|
|
2651
|
+
message += referencepath_publisherValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2652
|
+
return new TypeError(message);
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
if (obj.reviewsSummary !== undefined) {
|
|
2656
|
+
const obj_reviewsSummary = obj.reviewsSummary;
|
|
2657
|
+
const path_reviewsSummary = path + '.reviewsSummary';
|
|
2658
|
+
const referencepath_reviewsSummaryValidationError = validate$8(obj_reviewsSummary, path_reviewsSummary);
|
|
2659
|
+
if (referencepath_reviewsSummaryValidationError !== null) {
|
|
2660
|
+
let message = 'Object doesn\'t match AppExchangeListingReviewsSummaryRepresentation (at "' + path_reviewsSummary + '")\n';
|
|
2661
|
+
message += referencepath_reviewsSummaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2662
|
+
return new TypeError(message);
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
const obj_seoTitle = obj.seoTitle;
|
|
2666
|
+
const path_seoTitle = path + '.seoTitle';
|
|
2667
|
+
if (typeof obj_seoTitle !== 'string') {
|
|
2668
|
+
return new TypeError('Expected "string" but received "' + typeof obj_seoTitle + '" (at "' + path_seoTitle + '")');
|
|
2669
|
+
}
|
|
2670
|
+
if (obj.solution !== undefined) {
|
|
2671
|
+
const obj_solution = obj.solution;
|
|
2672
|
+
const path_solution = path + '.solution';
|
|
2673
|
+
const referencepath_solutionValidationError = validate$5(obj_solution, path_solution);
|
|
2674
|
+
if (referencepath_solutionValidationError !== null) {
|
|
2675
|
+
let message = 'Object doesn\'t match AppExchangeListingSolutionRepresentation (at "' + path_solution + '")\n';
|
|
2676
|
+
message += referencepath_solutionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2677
|
+
return new TypeError(message);
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
const obj_technology = obj.technology;
|
|
2681
|
+
const path_technology = path + '.technology';
|
|
2682
|
+
if (typeof obj_technology !== 'string') {
|
|
2683
|
+
return new TypeError('Expected "string" but received "' + typeof obj_technology + '" (at "' + path_technology + '")');
|
|
2684
|
+
}
|
|
2685
|
+
const obj_title = obj.title;
|
|
2686
|
+
const path_title = path + '.title';
|
|
2687
|
+
if (typeof obj_title !== 'string') {
|
|
2688
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
2689
|
+
}
|
|
2690
|
+
if (obj.userCreatedAt !== undefined) {
|
|
2691
|
+
const obj_userCreatedAt = obj.userCreatedAt;
|
|
2692
|
+
const path_userCreatedAt = path + '.userCreatedAt';
|
|
2693
|
+
if (typeof obj_userCreatedAt !== 'string') {
|
|
2694
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userCreatedAt + '" (at "' + path_userCreatedAt + '")');
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
if (obj.userUpdatedAt !== undefined) {
|
|
2698
|
+
const obj_userUpdatedAt = obj.userUpdatedAt;
|
|
2699
|
+
const path_userUpdatedAt = path + '.userUpdatedAt';
|
|
2700
|
+
if (typeof obj_userUpdatedAt !== 'string') {
|
|
2701
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userUpdatedAt + '" (at "' + path_userUpdatedAt + '")');
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
})();
|
|
2705
|
+
return v_error === undefined ? null : v_error;
|
|
2706
|
+
}
|
|
2707
|
+
const RepresentationType$2 = 'AppExchangeListingDetailsRepresentation';
|
|
2708
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
2709
|
+
return input;
|
|
2710
|
+
}
|
|
2711
|
+
const select$5 = function AppExchangeListingDetailsRepresentationSelect() {
|
|
2712
|
+
return {
|
|
2713
|
+
kind: 'Fragment',
|
|
2714
|
+
version: VERSION$2,
|
|
2715
|
+
private: [],
|
|
2716
|
+
opaque: true
|
|
2717
|
+
};
|
|
2718
|
+
};
|
|
2719
|
+
function equals$2(existing, incoming) {
|
|
2720
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2721
|
+
return false;
|
|
2722
|
+
}
|
|
2723
|
+
return true;
|
|
2724
|
+
}
|
|
2725
|
+
const ingest$2 = function AppExchangeListingDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2726
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2727
|
+
const validateError = validate$4(input);
|
|
2728
|
+
if (validateError !== null) {
|
|
2729
|
+
throw validateError;
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
const key = path.fullPath;
|
|
2733
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000;
|
|
2734
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "appexchange", VERSION$2, RepresentationType$2, equals$2);
|
|
2735
|
+
return createLink(key);
|
|
2736
|
+
};
|
|
2737
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
2738
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2739
|
+
const rootKey = fullPathFactory();
|
|
2740
|
+
rootKeySet.set(rootKey, {
|
|
2741
|
+
namespace: keyPrefix,
|
|
2742
|
+
representationName: RepresentationType$2,
|
|
2743
|
+
mergeable: false
|
|
2744
|
+
});
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
function select$4(luvio, params) {
|
|
2748
|
+
return select$5();
|
|
2749
|
+
}
|
|
2750
|
+
function keyBuilder$4(luvio, params) {
|
|
2751
|
+
return keyPrefix + '::AppExchangeListingDetailsRepresentation:(' + 'includeRelated:' + params.queryParams.includeRelated + ',' + 'listingId:' + params.urlParams.listingId + ')';
|
|
2752
|
+
}
|
|
2753
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
2754
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
|
|
2755
|
+
}
|
|
2756
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
2757
|
+
const { body } = response;
|
|
2758
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
2759
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
2760
|
+
const snapshot = luvio.storeLookup({
|
|
2761
|
+
recordId: key,
|
|
2762
|
+
node: select$4(),
|
|
2763
|
+
variables: {},
|
|
2764
|
+
}, snapshotRefresh);
|
|
2765
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2766
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
2767
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2768
|
+
}
|
|
2769
|
+
}
|
|
2770
|
+
deepFreeze(snapshot.data);
|
|
2771
|
+
return snapshot;
|
|
2772
|
+
}
|
|
2773
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
2774
|
+
const key = keyBuilder$4(luvio, params);
|
|
2775
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2776
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
2777
|
+
return errorSnapshot;
|
|
2778
|
+
}
|
|
2779
|
+
function createResourceRequest$2(config) {
|
|
2780
|
+
const headers = {};
|
|
2781
|
+
return {
|
|
2782
|
+
baseUri: '/services/data/v63.0',
|
|
2783
|
+
basePath: '/connect/appexchange/listings/' + config.urlParams.listingId + '',
|
|
2784
|
+
method: 'get',
|
|
2785
|
+
body: null,
|
|
2786
|
+
urlParams: config.urlParams,
|
|
2787
|
+
queryParams: config.queryParams,
|
|
2788
|
+
headers,
|
|
2789
|
+
priority: 'normal',
|
|
2790
|
+
};
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
const adapterName$2 = 'getListingDetails';
|
|
2794
|
+
const getListingDetails_ConfigPropertyMetadata = [
|
|
2795
|
+
generateParamConfigMetadata('listingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2796
|
+
generateParamConfigMetadata('includeRelated', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
2797
|
+
];
|
|
2798
|
+
const getListingDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getListingDetails_ConfigPropertyMetadata);
|
|
2799
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getListingDetails_ConfigPropertyMetadata);
|
|
2800
|
+
function keyBuilder$3(luvio, config) {
|
|
2801
|
+
const resourceParams = createResourceParams$2(config);
|
|
2802
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
2803
|
+
}
|
|
2804
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
2805
|
+
const config = {};
|
|
2806
|
+
typeCheckConfig$3(untrustedConfig, config, getListingDetails_ConfigPropertyMetadata);
|
|
2807
|
+
return config;
|
|
2808
|
+
}
|
|
2809
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
2810
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2811
|
+
return null;
|
|
2812
|
+
}
|
|
2813
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2814
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2815
|
+
}
|
|
2816
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
2817
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2818
|
+
return null;
|
|
2819
|
+
}
|
|
2820
|
+
return config;
|
|
2821
|
+
}
|
|
2822
|
+
function adapterFragment$1(luvio, config) {
|
|
2823
|
+
createResourceParams$2(config);
|
|
2824
|
+
return select$4();
|
|
2825
|
+
}
|
|
2826
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
2827
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
2828
|
+
config,
|
|
2829
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
2830
|
+
});
|
|
2831
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2832
|
+
}
|
|
2833
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
2834
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
2835
|
+
config,
|
|
2836
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
2837
|
+
});
|
|
2838
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2839
|
+
}
|
|
2840
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
2841
|
+
const resourceParams = createResourceParams$2(config);
|
|
2842
|
+
const request = createResourceRequest$2(resourceParams);
|
|
2843
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2844
|
+
.then((response) => {
|
|
2845
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
2846
|
+
const cache = new StoreKeyMap();
|
|
2847
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
2848
|
+
return cache;
|
|
2849
|
+
});
|
|
2850
|
+
}, (response) => {
|
|
2851
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
2852
|
+
});
|
|
2853
|
+
}
|
|
2854
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2855
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
2856
|
+
}
|
|
2857
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2858
|
+
const { luvio, config } = context;
|
|
2859
|
+
const selector = {
|
|
2860
|
+
recordId: keyBuilder$3(luvio, config),
|
|
2861
|
+
node: adapterFragment$1(luvio, config),
|
|
2862
|
+
variables: {},
|
|
2863
|
+
};
|
|
2864
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
2865
|
+
config,
|
|
2866
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
2867
|
+
});
|
|
2868
|
+
return cacheSnapshot;
|
|
2869
|
+
}
|
|
2870
|
+
const getListingDetailsAdapterFactory = (luvio) => function appexchange__getListingDetails(untrustedConfig, requestContext) {
|
|
2871
|
+
const config = validateAdapterConfig$2(untrustedConfig, getListingDetails_ConfigPropertyNames);
|
|
2872
|
+
// Invalid or incomplete config
|
|
2873
|
+
if (config === null) {
|
|
2874
|
+
return null;
|
|
2875
|
+
}
|
|
2876
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2877
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
2878
|
+
};
|
|
2879
|
+
|
|
82
2880
|
function validate$3(obj, path = 'AppExchangeListingLogoRepresentation') {
|
|
83
2881
|
const v_error = (() => {
|
|
84
2882
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -195,8 +2993,7 @@ function validate$2(obj, path = 'AppExchangeSearchListingRepresentation') {
|
|
|
195
2993
|
return v_error === undefined ? null : v_error;
|
|
196
2994
|
}
|
|
197
2995
|
|
|
198
|
-
const
|
|
199
|
-
const VERSION$1 = "a8547fef5ab9dc70a1e6077ff392fa82";
|
|
2996
|
+
const VERSION$1 = "a62184aef316aa15954899c1d6098cb5";
|
|
200
2997
|
function validate$1(obj, path = 'AppExchangeSearchListingCollectionRepresentation') {
|
|
201
2998
|
const v_error = (() => {
|
|
202
2999
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -251,7 +3048,7 @@ const ingest$1 = function AppExchangeSearchListingCollectionRepresentationIngest
|
|
|
251
3048
|
}
|
|
252
3049
|
}
|
|
253
3050
|
const key = path.fullPath;
|
|
254
|
-
const ttlToUse =
|
|
3051
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000;
|
|
255
3052
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "appexchange", VERSION$1, RepresentationType$1, equals$1);
|
|
256
3053
|
return createLink(key);
|
|
257
3054
|
};
|
|
@@ -294,13 +3091,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
294
3091
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
295
3092
|
const key = keyBuilder$2(luvio, params);
|
|
296
3093
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
297
|
-
|
|
298
|
-
ttl: TTL$1,
|
|
299
|
-
namespace: keyPrefix,
|
|
300
|
-
version: VERSION$1,
|
|
301
|
-
representationName: RepresentationType$1
|
|
302
|
-
};
|
|
303
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3094
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
304
3095
|
return errorSnapshot;
|
|
305
3096
|
}
|
|
306
3097
|
function createResourceRequest$1(config) {
|
|
@@ -339,14 +3130,14 @@ const getAppExchangeSearchListingCollection_ConfigPropertyMetadata = [
|
|
|
339
3130
|
generateParamConfigMetadata('type', false, 1 /* QueryParameter */, 0 /* String */),
|
|
340
3131
|
];
|
|
341
3132
|
const getAppExchangeSearchListingCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAppExchangeSearchListingCollection_ConfigPropertyMetadata);
|
|
342
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
3133
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getAppExchangeSearchListingCollection_ConfigPropertyMetadata);
|
|
343
3134
|
function keyBuilder$1(luvio, config) {
|
|
344
3135
|
const resourceParams = createResourceParams$1(config);
|
|
345
3136
|
return keyBuilder$2(luvio, resourceParams);
|
|
346
3137
|
}
|
|
347
3138
|
function typeCheckConfig$1(untrustedConfig) {
|
|
348
3139
|
const config = {};
|
|
349
|
-
typeCheckConfig$
|
|
3140
|
+
typeCheckConfig$3(untrustedConfig, config, getAppExchangeSearchListingCollection_ConfigPropertyMetadata);
|
|
350
3141
|
return config;
|
|
351
3142
|
}
|
|
352
3143
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -395,7 +3186,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
395
3186
|
});
|
|
396
3187
|
}
|
|
397
3188
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
398
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3189
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
399
3190
|
}
|
|
400
3191
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
401
3192
|
const { luvio, config } = context;
|
|
@@ -420,7 +3211,6 @@ const getAppExchangeSearchListingCollectionAdapterFactory = (luvio) => function
|
|
|
420
3211
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
421
3212
|
};
|
|
422
3213
|
|
|
423
|
-
const TTL = 1000;
|
|
424
3214
|
const VERSION = "b0309b3336a7e875a0cc40a008a340f9";
|
|
425
3215
|
function validate(obj, path = 'AppExchangeUserEventsOutputRepresentation') {
|
|
426
3216
|
const v_error = (() => {
|
|
@@ -458,11 +3248,27 @@ const select$1 = function AppExchangeUserEventsOutputRepresentationSelect() {
|
|
|
458
3248
|
kind: 'Fragment',
|
|
459
3249
|
version: VERSION,
|
|
460
3250
|
private: [],
|
|
461
|
-
|
|
3251
|
+
selections: [
|
|
3252
|
+
{
|
|
3253
|
+
name: 'message',
|
|
3254
|
+
kind: 'Scalar'
|
|
3255
|
+
},
|
|
3256
|
+
{
|
|
3257
|
+
name: 'primaryKey',
|
|
3258
|
+
kind: 'Scalar'
|
|
3259
|
+
}
|
|
3260
|
+
]
|
|
462
3261
|
};
|
|
463
3262
|
};
|
|
464
3263
|
function equals(existing, incoming) {
|
|
465
|
-
|
|
3264
|
+
const existing_message = existing.message;
|
|
3265
|
+
const incoming_message = incoming.message;
|
|
3266
|
+
if (!(existing_message === incoming_message)) {
|
|
3267
|
+
return false;
|
|
3268
|
+
}
|
|
3269
|
+
const existing_primaryKey = existing.primaryKey;
|
|
3270
|
+
const incoming_primaryKey = incoming.primaryKey;
|
|
3271
|
+
if (!(existing_primaryKey === incoming_primaryKey)) {
|
|
466
3272
|
return false;
|
|
467
3273
|
}
|
|
468
3274
|
return true;
|
|
@@ -475,7 +3281,7 @@ const ingest = function AppExchangeUserEventsOutputRepresentationIngest(input, p
|
|
|
475
3281
|
}
|
|
476
3282
|
}
|
|
477
3283
|
const key = keyBuilderFromType(luvio, input);
|
|
478
|
-
const ttlToUse =
|
|
3284
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000;
|
|
479
3285
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "appexchange", VERSION, RepresentationType, equals);
|
|
480
3286
|
return createLink(key);
|
|
481
3287
|
};
|
|
@@ -528,47 +3334,38 @@ function createResourceRequest(config) {
|
|
|
528
3334
|
|
|
529
3335
|
const adapterName = 'postAppExchangeUserEvents';
|
|
530
3336
|
const postAppExchangeUserEvents_ConfigPropertyMetadata = [
|
|
531
|
-
generateParamConfigMetadata('browser',
|
|
532
|
-
generateParamConfigMetadata('buttonType',
|
|
533
|
-
generateParamConfigMetadata('channel',
|
|
534
|
-
generateParamConfigMetadata('context',
|
|
535
|
-
generateParamConfigMetadata('customTitle',
|
|
536
|
-
generateParamConfigMetadata('date',
|
|
537
|
-
generateParamConfigMetadata('deviceHeight',
|
|
538
|
-
generateParamConfigMetadata('deviceWidth',
|
|
539
|
-
generateParamConfigMetadata('elementType',
|
|
540
|
-
generateParamConfigMetadata('eventType',
|
|
541
|
-
generateParamConfigMetadata('image',
|
|
542
|
-
generateParamConfigMetadata('language',
|
|
543
|
-
generateParamConfigMetadata('oafId',
|
|
544
|
-
generateParamConfigMetadata('objectIdentifier',
|
|
545
|
-
generateParamConfigMetadata('parentChannel',
|
|
546
|
-
generateParamConfigMetadata('referrer',
|
|
547
|
-
generateParamConfigMetadata('source',
|
|
548
|
-
generateParamConfigMetadata('timestamp',
|
|
549
|
-
generateParamConfigMetadata('token',
|
|
550
|
-
generateParamConfigMetadata('topic',
|
|
551
|
-
generateParamConfigMetadata('trace',
|
|
552
|
-
generateParamConfigMetadata('url',
|
|
553
|
-
generateParamConfigMetadata('viewportHeight',
|
|
554
|
-
generateParamConfigMetadata('viewportWidth',
|
|
3337
|
+
generateParamConfigMetadata('browser', false, 2 /* Body */, 0 /* String */),
|
|
3338
|
+
generateParamConfigMetadata('buttonType', false, 2 /* Body */, 0 /* String */),
|
|
3339
|
+
generateParamConfigMetadata('channel', false, 2 /* Body */, 0 /* String */),
|
|
3340
|
+
generateParamConfigMetadata('context', false, 2 /* Body */, 0 /* String */),
|
|
3341
|
+
generateParamConfigMetadata('customTitle', false, 2 /* Body */, 0 /* String */),
|
|
3342
|
+
generateParamConfigMetadata('date', false, 2 /* Body */, 0 /* String */),
|
|
3343
|
+
generateParamConfigMetadata('deviceHeight', false, 2 /* Body */, 0 /* String */),
|
|
3344
|
+
generateParamConfigMetadata('deviceWidth', false, 2 /* Body */, 0 /* String */),
|
|
3345
|
+
generateParamConfigMetadata('elementType', false, 2 /* Body */, 0 /* String */),
|
|
3346
|
+
generateParamConfigMetadata('eventType', false, 2 /* Body */, 0 /* String */),
|
|
3347
|
+
generateParamConfigMetadata('image', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3348
|
+
generateParamConfigMetadata('language', false, 2 /* Body */, 0 /* String */),
|
|
3349
|
+
generateParamConfigMetadata('oafId', false, 2 /* Body */, 0 /* String */),
|
|
3350
|
+
generateParamConfigMetadata('objectIdentifier', false, 2 /* Body */, 0 /* String */),
|
|
3351
|
+
generateParamConfigMetadata('parentChannel', false, 2 /* Body */, 0 /* String */),
|
|
3352
|
+
generateParamConfigMetadata('referrer', false, 2 /* Body */, 0 /* String */),
|
|
3353
|
+
generateParamConfigMetadata('source', false, 2 /* Body */, 0 /* String */),
|
|
3354
|
+
generateParamConfigMetadata('timestamp', false, 2 /* Body */, 0 /* String */),
|
|
3355
|
+
generateParamConfigMetadata('token', false, 2 /* Body */, 0 /* String */),
|
|
3356
|
+
generateParamConfigMetadata('topic', false, 2 /* Body */, 0 /* String */),
|
|
3357
|
+
generateParamConfigMetadata('trace', false, 2 /* Body */, 1 /* Boolean */),
|
|
3358
|
+
generateParamConfigMetadata('url', false, 2 /* Body */, 0 /* String */),
|
|
3359
|
+
generateParamConfigMetadata('viewportHeight', false, 2 /* Body */, 0 /* String */),
|
|
3360
|
+
generateParamConfigMetadata('viewportWidth', false, 2 /* Body */, 0 /* String */),
|
|
555
3361
|
];
|
|
556
3362
|
const postAppExchangeUserEvents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postAppExchangeUserEvents_ConfigPropertyMetadata);
|
|
557
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
3363
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(postAppExchangeUserEvents_ConfigPropertyMetadata);
|
|
558
3364
|
function typeCheckConfig(untrustedConfig) {
|
|
559
3365
|
const config = {};
|
|
560
|
-
typeCheckConfig$
|
|
3366
|
+
typeCheckConfig$3(untrustedConfig, config, postAppExchangeUserEvents_ConfigPropertyMetadata);
|
|
561
3367
|
const untrustedConfig_image = untrustedConfig.image;
|
|
562
|
-
|
|
563
|
-
const untrustedConfig_image_object = {};
|
|
564
|
-
const untrustedConfig_image_positionIndex = untrustedConfig_image.positionIndex;
|
|
565
|
-
if (typeof untrustedConfig_image_positionIndex === 'string') {
|
|
566
|
-
untrustedConfig_image_object.positionIndex = untrustedConfig_image_positionIndex;
|
|
567
|
-
}
|
|
568
|
-
if (untrustedConfig_image_object !== undefined && Object.keys(untrustedConfig_image_object).length >= 0) {
|
|
569
|
-
config.image = untrustedConfig_image_object;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
3368
|
+
config.image = untrustedConfig_image;
|
|
572
3369
|
return config;
|
|
573
3370
|
}
|
|
574
3371
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -613,4 +3410,4 @@ const postAppExchangeUserEventsAdapterFactory = (luvio) => {
|
|
|
613
3410
|
};
|
|
614
3411
|
};
|
|
615
3412
|
|
|
616
|
-
export { getAppExchangeSearchListingCollectionAdapterFactory, postAppExchangeUserEventsAdapterFactory };
|
|
3413
|
+
export { getAppExchangeSearchListingCollectionAdapterFactory, getListingDetailsAdapterFactory, postAppExchangeUserEventsAdapterFactory };
|