quiver-protobuf-typescript 1.0.1787582021 → 1.0.1787604774
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/fulfilment/product.ts +30 -1
- package/package.json +1 -1
package/fulfilment/product.ts
CHANGED
|
@@ -81,7 +81,15 @@ export interface Product {
|
|
|
81
81
|
* This is intentionally separate from a Quiver stock configuration: a native
|
|
82
82
|
* bundle can still need an ops decision before it has stock mapped here.
|
|
83
83
|
*/
|
|
84
|
-
shopifyBundle?:
|
|
84
|
+
shopifyBundle?:
|
|
85
|
+
| boolean
|
|
86
|
+
| undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Set for native Shopify bundles after Quiver has resolved every Shopify
|
|
89
|
+
* component to physical stock. False means the recipe is known but needs an
|
|
90
|
+
* inventory mapping; absent means this is not a Shopify bundle.
|
|
91
|
+
*/
|
|
92
|
+
shopifyBundleConfigured?: boolean | undefined;
|
|
85
93
|
}
|
|
86
94
|
|
|
87
95
|
export interface CreateProductRequest {
|
|
@@ -740,6 +748,7 @@ function createBaseProduct(): Product {
|
|
|
740
748
|
dimensionsSource: undefined,
|
|
741
749
|
shopifyStatus: undefined,
|
|
742
750
|
shopifyBundle: undefined,
|
|
751
|
+
shopifyBundleConfigured: undefined,
|
|
743
752
|
};
|
|
744
753
|
}
|
|
745
754
|
|
|
@@ -805,6 +814,9 @@ export const Product: MessageFns<Product> = {
|
|
|
805
814
|
if (message.shopifyBundle !== undefined) {
|
|
806
815
|
writer.uint32(160).bool(message.shopifyBundle);
|
|
807
816
|
}
|
|
817
|
+
if (message.shopifyBundleConfigured !== undefined) {
|
|
818
|
+
writer.uint32(168).bool(message.shopifyBundleConfigured);
|
|
819
|
+
}
|
|
808
820
|
return writer;
|
|
809
821
|
},
|
|
810
822
|
|
|
@@ -981,6 +993,14 @@ export const Product: MessageFns<Product> = {
|
|
|
981
993
|
message.shopifyBundle = reader.bool();
|
|
982
994
|
continue;
|
|
983
995
|
}
|
|
996
|
+
case 21: {
|
|
997
|
+
if (tag !== 168) {
|
|
998
|
+
break;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
message.shopifyBundleConfigured = reader.bool();
|
|
1002
|
+
continue;
|
|
1003
|
+
}
|
|
984
1004
|
}
|
|
985
1005
|
if ((tag & 7) === 4 || tag === 0) {
|
|
986
1006
|
break;
|
|
@@ -1059,6 +1079,11 @@ export const Product: MessageFns<Product> = {
|
|
|
1059
1079
|
: isSet(object.shopify_bundle)
|
|
1060
1080
|
? globalThis.Boolean(object.shopify_bundle)
|
|
1061
1081
|
: undefined,
|
|
1082
|
+
shopifyBundleConfigured: isSet(object.shopifyBundleConfigured)
|
|
1083
|
+
? globalThis.Boolean(object.shopifyBundleConfigured)
|
|
1084
|
+
: isSet(object.shopify_bundle_configured)
|
|
1085
|
+
? globalThis.Boolean(object.shopify_bundle_configured)
|
|
1086
|
+
: undefined,
|
|
1062
1087
|
};
|
|
1063
1088
|
},
|
|
1064
1089
|
|
|
@@ -1124,6 +1149,9 @@ export const Product: MessageFns<Product> = {
|
|
|
1124
1149
|
if (message.shopifyBundle !== undefined) {
|
|
1125
1150
|
obj.shopifyBundle = message.shopifyBundle;
|
|
1126
1151
|
}
|
|
1152
|
+
if (message.shopifyBundleConfigured !== undefined) {
|
|
1153
|
+
obj.shopifyBundleConfigured = message.shopifyBundleConfigured;
|
|
1154
|
+
}
|
|
1127
1155
|
return obj;
|
|
1128
1156
|
},
|
|
1129
1157
|
|
|
@@ -1154,6 +1182,7 @@ export const Product: MessageFns<Product> = {
|
|
|
1154
1182
|
message.dimensionsSource = object.dimensionsSource ?? undefined;
|
|
1155
1183
|
message.shopifyStatus = object.shopifyStatus ?? undefined;
|
|
1156
1184
|
message.shopifyBundle = object.shopifyBundle ?? undefined;
|
|
1185
|
+
message.shopifyBundleConfigured = object.shopifyBundleConfigured ?? undefined;
|
|
1157
1186
|
return message;
|
|
1158
1187
|
},
|
|
1159
1188
|
};
|