@spiffcommerce/core 26.39.1 → 26.40.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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9676,6 +9676,8 @@ const Ts = y`
|
|
|
9676
9676
|
}
|
|
9677
9677
|
bundles(ids: [$id]) {
|
|
9678
9678
|
id
|
|
9679
|
+
dispatchDate
|
|
9680
|
+
purchaseOrder
|
|
9679
9681
|
completed
|
|
9680
9682
|
workflowViewerLink
|
|
9681
9683
|
workflowViewerAmendLink
|
|
@@ -9709,6 +9711,8 @@ const Ts = y`
|
|
|
9709
9711
|
query GetBundleStakeholders($id: String!) {
|
|
9710
9712
|
bundles(ids: [$id]) {
|
|
9711
9713
|
id
|
|
9714
|
+
dispatchDate
|
|
9715
|
+
purchaseOrder
|
|
9712
9716
|
completed
|
|
9713
9717
|
workflowViewerLink
|
|
9714
9718
|
workflowViewerAmendLink
|
|
@@ -9759,6 +9763,8 @@ const Ts = y`
|
|
|
9759
9763
|
type
|
|
9760
9764
|
bundle {
|
|
9761
9765
|
id
|
|
9766
|
+
dispatchDate
|
|
9767
|
+
purchaseOrder
|
|
9762
9768
|
completed
|
|
9763
9769
|
workflowViewerLink
|
|
9764
9770
|
workflowViewerAmendLink
|
|
@@ -9907,8 +9913,8 @@ const Ts = y`
|
|
|
9907
9913
|
}
|
|
9908
9914
|
}
|
|
9909
9915
|
`, Vs = y`
|
|
9910
|
-
mutation UpdateBundle($id: String!, $name: String, $metadata: [MetadataInput!], $bundleStateData: String) {
|
|
9911
|
-
bundleUpdate(id: $id, name: $name, metadata: $metadata, bundleStateData: $bundleStateData) {
|
|
9916
|
+
mutation UpdateBundle($id: String!, $name: String, $metadata: [MetadataInput!], $bundleStateData: String, $dispatchDate: String, $purchaseOrder: String) {
|
|
9917
|
+
bundleUpdate(id: $id, name: $name, metadata: $metadata, bundleStateData: $bundleStateData, dispatchDate: $dispatchDate, purchaseOrder: $purchaseOrder) {
|
|
9912
9918
|
id
|
|
9913
9919
|
}
|
|
9914
9920
|
}
|
|
@@ -10027,6 +10033,8 @@ const Ts = y`
|
|
|
10027
10033
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: $template, templateStatus: $templateStatus, ordered: $ordered) {
|
|
10028
10034
|
items {
|
|
10029
10035
|
id
|
|
10036
|
+
dispatchDate
|
|
10037
|
+
purchaseOrder
|
|
10030
10038
|
name
|
|
10031
10039
|
template
|
|
10032
10040
|
templateStatus
|
|
@@ -14644,6 +14652,18 @@ class He {
|
|
|
14644
14652
|
setName(t) {
|
|
14645
14653
|
return this.name = t, this.updateBundle();
|
|
14646
14654
|
}
|
|
14655
|
+
getDispatchDate() {
|
|
14656
|
+
return this.dispatchDate;
|
|
14657
|
+
}
|
|
14658
|
+
setDispatchDate(t) {
|
|
14659
|
+
return this.dispatchDate = t, this.updateBundle();
|
|
14660
|
+
}
|
|
14661
|
+
getPurchaseOrder() {
|
|
14662
|
+
return this.purchaseOrder;
|
|
14663
|
+
}
|
|
14664
|
+
setPurchaseOrder(t) {
|
|
14665
|
+
return this.purchaseOrder = t, this.updateBundle();
|
|
14666
|
+
}
|
|
14647
14667
|
getMetadata() {
|
|
14648
14668
|
return new Map(this.metadata);
|
|
14649
14669
|
}
|
|
@@ -15118,7 +15138,9 @@ class He {
|
|
|
15118
15138
|
id: this.id,
|
|
15119
15139
|
name: this.name,
|
|
15120
15140
|
metadata: Array.from(this.metadata.entries()).map(([a, n]) => ({ key: a, value: n })),
|
|
15121
|
-
bundleStateData: this.bundleStateManager.getSerializedState()
|
|
15141
|
+
bundleStateData: this.bundleStateManager.getSerializedState(),
|
|
15142
|
+
dispatchDate: this.dispatchDate,
|
|
15143
|
+
purchaseOrder: this.purchaseOrder
|
|
15122
15144
|
},
|
|
15123
15145
|
context: {
|
|
15124
15146
|
bundleOwnerId: this.ownerId
|
|
@@ -15621,7 +15643,7 @@ class _c {
|
|
|
15621
15643
|
} catch (a) {
|
|
15622
15644
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15623
15645
|
}
|
|
15624
|
-
}, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.
|
|
15646
|
+
}, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.40.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15625
15647
|
}
|
|
15626
15648
|
configure(t) {
|
|
15627
15649
|
mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && Qr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|
|
@@ -16928,6 +16950,8 @@ const Ml = y`
|
|
|
16928
16950
|
id
|
|
16929
16951
|
workflowViewerLink
|
|
16930
16952
|
createdAt
|
|
16953
|
+
dispatchDate
|
|
16954
|
+
purchaseOrder
|
|
16931
16955
|
name
|
|
16932
16956
|
ordered
|
|
16933
16957
|
}
|