@mamindom/contracts 1.0.88 → 1.0.89
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/gen/bundle.d.ts +8 -0
- package/dist/gen/bundle.js +7 -1
- package/dist/proto/bundle.proto +8 -0
- package/gen/bundle.ts +9 -0
- package/package.json +1 -1
- package/proto/bundle.proto +8 -0
package/dist/gen/bundle.d.ts
CHANGED
|
@@ -34,6 +34,11 @@ export declare enum BundleType {
|
|
|
34
34
|
BUNDLE_TYPE_UPSELL = 3,
|
|
35
35
|
UNRECOGNIZED = -1
|
|
36
36
|
}
|
|
37
|
+
export declare enum RuleOperator {
|
|
38
|
+
RULE_OPERATOR_ANY = 0,
|
|
39
|
+
RULE_OPERATOR_ALL = 1,
|
|
40
|
+
UNRECOGNIZED = -1
|
|
41
|
+
}
|
|
37
42
|
export interface GetBundlesRequest {
|
|
38
43
|
pagination: PaginationRequest | undefined;
|
|
39
44
|
search?: string | undefined;
|
|
@@ -78,6 +83,7 @@ export interface CreateBundleRequest {
|
|
|
78
83
|
requireAllInStock: boolean;
|
|
79
84
|
bundleType: BundleType;
|
|
80
85
|
anchorProductId?: string | undefined;
|
|
86
|
+
ruleOperator?: RuleOperator | undefined;
|
|
81
87
|
}
|
|
82
88
|
export interface CreateBundleRequest_NameEntry {
|
|
83
89
|
key: string;
|
|
@@ -132,6 +138,7 @@ export interface UpdateBundleRequest {
|
|
|
132
138
|
requireAllInStock?: boolean | undefined;
|
|
133
139
|
bundleType?: BundleType | undefined;
|
|
134
140
|
anchorProductId?: string | undefined;
|
|
141
|
+
ruleOperator?: RuleOperator | undefined;
|
|
135
142
|
}
|
|
136
143
|
export interface UpdateBundleRequest_NameEntry {
|
|
137
144
|
key: string;
|
|
@@ -290,6 +297,7 @@ export interface BundleDetailResponse {
|
|
|
290
297
|
requireAllInStock: boolean;
|
|
291
298
|
bundleType: BundleType;
|
|
292
299
|
anchorProductId?: string | undefined;
|
|
300
|
+
ruleOperator: RuleOperator;
|
|
293
301
|
}
|
|
294
302
|
export interface BundleDetailResponse_NameEntry {
|
|
295
303
|
key: string;
|
package/dist/gen/bundle.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: bundle.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.BUNDLE_SERVICE_NAME = exports.CATALOG_V1_PACKAGE_NAME = exports.BundleType = exports.PriceMode = exports.DisplayPlacement = exports.DiscountType = exports.BundleStatus = exports.protobufPackage = void 0;
|
|
8
|
+
exports.BUNDLE_SERVICE_NAME = exports.CATALOG_V1_PACKAGE_NAME = exports.RuleOperator = exports.BundleType = exports.PriceMode = exports.DisplayPlacement = exports.DiscountType = exports.BundleStatus = exports.protobufPackage = void 0;
|
|
9
9
|
exports.BundleServiceControllerMethods = BundleServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
@@ -48,6 +48,12 @@ var BundleType;
|
|
|
48
48
|
BundleType[BundleType["BUNDLE_TYPE_UPSELL"] = 3] = "BUNDLE_TYPE_UPSELL";
|
|
49
49
|
BundleType[BundleType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
50
50
|
})(BundleType || (exports.BundleType = BundleType = {}));
|
|
51
|
+
var RuleOperator;
|
|
52
|
+
(function (RuleOperator) {
|
|
53
|
+
RuleOperator[RuleOperator["RULE_OPERATOR_ANY"] = 0] = "RULE_OPERATOR_ANY";
|
|
54
|
+
RuleOperator[RuleOperator["RULE_OPERATOR_ALL"] = 1] = "RULE_OPERATOR_ALL";
|
|
55
|
+
RuleOperator[RuleOperator["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
56
|
+
})(RuleOperator || (exports.RuleOperator = RuleOperator = {}));
|
|
51
57
|
exports.CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
52
58
|
function BundleServiceControllerMethods() {
|
|
53
59
|
return function (constructor) {
|
package/dist/proto/bundle.proto
CHANGED
|
@@ -71,6 +71,11 @@ enum BundleType {
|
|
|
71
71
|
BUNDLE_TYPE_UPSELL = 3;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
enum RuleOperator {
|
|
75
|
+
RULE_OPERATOR_ANY = 0;
|
|
76
|
+
RULE_OPERATOR_ALL = 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
74
79
|
|
|
75
80
|
// ─── Requests ─────────────────────────────────────────────────────────────────
|
|
76
81
|
|
|
@@ -117,6 +122,7 @@ message CreateBundleRequest {
|
|
|
117
122
|
bool require_all_in_stock = 19;
|
|
118
123
|
BundleType bundle_type = 20;
|
|
119
124
|
optional string anchor_product_id = 21;
|
|
125
|
+
optional RuleOperator rule_operator = 22;
|
|
120
126
|
}
|
|
121
127
|
|
|
122
128
|
message UpdateBundleRequest {
|
|
@@ -149,6 +155,7 @@ message UpdateBundleRequest {
|
|
|
149
155
|
optional bool require_all_in_stock = 19;
|
|
150
156
|
optional BundleType bundle_type = 20;
|
|
151
157
|
optional string anchor_product_id = 21;
|
|
158
|
+
optional RuleOperator rule_operator = 22;
|
|
152
159
|
}
|
|
153
160
|
|
|
154
161
|
message DeleteBundleRequest {
|
|
@@ -304,6 +311,7 @@ message BundleDetailResponse {
|
|
|
304
311
|
bool require_all_in_stock = 23;
|
|
305
312
|
BundleType bundle_type = 24;
|
|
306
313
|
optional string anchor_product_id = 25;
|
|
314
|
+
RuleOperator rule_operator = 26;
|
|
307
315
|
}
|
|
308
316
|
|
|
309
317
|
message BundleItemResponse {
|
package/gen/bundle.ts
CHANGED
|
@@ -49,6 +49,12 @@ export enum BundleType {
|
|
|
49
49
|
UNRECOGNIZED = -1,
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
export enum RuleOperator {
|
|
53
|
+
RULE_OPERATOR_ANY = 0,
|
|
54
|
+
RULE_OPERATOR_ALL = 1,
|
|
55
|
+
UNRECOGNIZED = -1,
|
|
56
|
+
}
|
|
57
|
+
|
|
52
58
|
export interface GetBundlesRequest {
|
|
53
59
|
pagination: PaginationRequest | undefined;
|
|
54
60
|
search?: string | undefined;
|
|
@@ -85,6 +91,7 @@ export interface CreateBundleRequest {
|
|
|
85
91
|
requireAllInStock: boolean;
|
|
86
92
|
bundleType: BundleType;
|
|
87
93
|
anchorProductId?: string | undefined;
|
|
94
|
+
ruleOperator?: RuleOperator | undefined;
|
|
88
95
|
}
|
|
89
96
|
|
|
90
97
|
export interface CreateBundleRequest_NameEntry {
|
|
@@ -135,6 +142,7 @@ export interface UpdateBundleRequest {
|
|
|
135
142
|
requireAllInStock?: boolean | undefined;
|
|
136
143
|
bundleType?: BundleType | undefined;
|
|
137
144
|
anchorProductId?: string | undefined;
|
|
145
|
+
ruleOperator?: RuleOperator | undefined;
|
|
138
146
|
}
|
|
139
147
|
|
|
140
148
|
export interface UpdateBundleRequest_NameEntry {
|
|
@@ -308,6 +316,7 @@ export interface BundleDetailResponse {
|
|
|
308
316
|
requireAllInStock: boolean;
|
|
309
317
|
bundleType: BundleType;
|
|
310
318
|
anchorProductId?: string | undefined;
|
|
319
|
+
ruleOperator: RuleOperator;
|
|
311
320
|
}
|
|
312
321
|
|
|
313
322
|
export interface BundleDetailResponse_NameEntry {
|
package/package.json
CHANGED
package/proto/bundle.proto
CHANGED
|
@@ -71,6 +71,11 @@ enum BundleType {
|
|
|
71
71
|
BUNDLE_TYPE_UPSELL = 3;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
enum RuleOperator {
|
|
75
|
+
RULE_OPERATOR_ANY = 0;
|
|
76
|
+
RULE_OPERATOR_ALL = 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
74
79
|
|
|
75
80
|
// ─── Requests ─────────────────────────────────────────────────────────────────
|
|
76
81
|
|
|
@@ -117,6 +122,7 @@ message CreateBundleRequest {
|
|
|
117
122
|
bool require_all_in_stock = 19;
|
|
118
123
|
BundleType bundle_type = 20;
|
|
119
124
|
optional string anchor_product_id = 21;
|
|
125
|
+
optional RuleOperator rule_operator = 22;
|
|
120
126
|
}
|
|
121
127
|
|
|
122
128
|
message UpdateBundleRequest {
|
|
@@ -149,6 +155,7 @@ message UpdateBundleRequest {
|
|
|
149
155
|
optional bool require_all_in_stock = 19;
|
|
150
156
|
optional BundleType bundle_type = 20;
|
|
151
157
|
optional string anchor_product_id = 21;
|
|
158
|
+
optional RuleOperator rule_operator = 22;
|
|
152
159
|
}
|
|
153
160
|
|
|
154
161
|
message DeleteBundleRequest {
|
|
@@ -304,6 +311,7 @@ message BundleDetailResponse {
|
|
|
304
311
|
bool require_all_in_stock = 23;
|
|
305
312
|
BundleType bundle_type = 24;
|
|
306
313
|
optional string anchor_product_id = 25;
|
|
314
|
+
RuleOperator rule_operator = 26;
|
|
307
315
|
}
|
|
308
316
|
|
|
309
317
|
message BundleItemResponse {
|