@spiffcommerce/core 29.0.1 → 29.0.3
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/CHANGELOG.md +13 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9721,6 +9721,8 @@ const ne = v`
|
|
|
9721
9721
|
id
|
|
9722
9722
|
name
|
|
9723
9723
|
description
|
|
9724
|
+
dispatchStartDate
|
|
9725
|
+
dispatchEndDate
|
|
9724
9726
|
image {
|
|
9725
9727
|
key
|
|
9726
9728
|
name
|
|
@@ -10173,6 +10175,8 @@ const ne = v`
|
|
|
10173
10175
|
id
|
|
10174
10176
|
name
|
|
10175
10177
|
description
|
|
10178
|
+
dispatchStartDate
|
|
10179
|
+
dispatchEndDate
|
|
10176
10180
|
image {
|
|
10177
10181
|
key
|
|
10178
10182
|
name
|
|
@@ -12688,7 +12692,7 @@ class Vo {
|
|
|
12688
12692
|
}
|
|
12689
12693
|
}
|
|
12690
12694
|
n.push(c);
|
|
12691
|
-
}), n;
|
|
12695
|
+
}), n.filter((i) => i.properties && i.properties.length > 0);
|
|
12692
12696
|
}
|
|
12693
12697
|
getQuantity() {
|
|
12694
12698
|
return this.getWorkflowManager().getTransaction().quantity || 1;
|
|
@@ -14361,6 +14365,22 @@ class tr {
|
|
|
14361
14365
|
getDescription() {
|
|
14362
14366
|
return this.collection.description || "";
|
|
14363
14367
|
}
|
|
14368
|
+
/**
|
|
14369
|
+
* The start date of the dispatch.
|
|
14370
|
+
* @returns The start date of the dispatch or undefined if not set.
|
|
14371
|
+
*/
|
|
14372
|
+
getDispatchStartDate() {
|
|
14373
|
+
if (this.collection.dispatchStartDate)
|
|
14374
|
+
return new Date(this.collection.dispatchStartDate);
|
|
14375
|
+
}
|
|
14376
|
+
/**
|
|
14377
|
+
* The end date of the dispatch.
|
|
14378
|
+
* @returns The end date of the dispatch or undefined if not set.
|
|
14379
|
+
*/
|
|
14380
|
+
getDispatchEndDate() {
|
|
14381
|
+
if (this.collection.dispatchEndDate)
|
|
14382
|
+
return new Date(this.collection.dispatchEndDate);
|
|
14383
|
+
}
|
|
14364
14384
|
/**
|
|
14365
14385
|
* The image of the collection.
|
|
14366
14386
|
*/
|
|
@@ -16065,7 +16085,7 @@ class hd {
|
|
|
16065
16085
|
} catch (a) {
|
|
16066
16086
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
16067
16087
|
}
|
|
16068
|
-
}, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 29.0.
|
|
16088
|
+
}, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 29.0.3"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16069
16089
|
}
|
|
16070
16090
|
configure(t) {
|
|
16071
16091
|
mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && Lr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|