@mamindom/contracts 1.0.180 → 1.0.182

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.
@@ -41,6 +41,7 @@ export interface UpsertAttributesResponse {
41
41
  results: AttributeUpsertResult[];
42
42
  }
43
43
  export interface GetAllAttributesWithValuesRequest {
44
+ attributeIds: string[];
44
45
  }
45
46
  export interface GetAllAttributesWithValuesResponse {
46
47
  items: AttributeWithValuesResponse[];
@@ -161,6 +161,7 @@ export interface GetPostsResponse {
161
161
  export interface GetPostRequest {
162
162
  id: string;
163
163
  slug?: string | undefined;
164
+ publishedOnly: boolean;
164
165
  }
165
166
  export interface CreatePostRequest {
166
167
  type: PostType;
@@ -39,6 +39,7 @@ export interface VariantStockDetail {
39
39
  options: {
40
40
  [key: string]: string;
41
41
  };
42
+ available: number;
42
43
  }
43
44
  export interface VariantStockDetail_OptionsEntry {
44
45
  key: string;
@@ -62,7 +62,10 @@ message UpsertAttributesResponse {
62
62
  repeated AttributeUpsertResult results = 1;
63
63
  }
64
64
 
65
- message GetAllAttributesWithValuesRequest {}
65
+ message GetAllAttributesWithValuesRequest {
66
+
67
+ repeated string attribute_ids = 1;
68
+ }
66
69
 
67
70
  message GetAllAttributesWithValuesResponse {
68
71
  repeated AttributeWithValuesResponse items = 1;
@@ -140,6 +140,9 @@ message GetPostsResponse {
140
140
  message GetPostRequest {
141
141
  string id = 1;
142
142
  optional string slug = 2;
143
+
144
+
145
+ bool published_only = 3;
143
146
  }
144
147
 
145
148
  message CreatePostRequest {
@@ -63,8 +63,11 @@ message VariantStockDetail {
63
63
  string variant_id = 1;
64
64
  string sku = 2;
65
65
  optional string barcode = 3;
66
+
66
67
  int32 stock = 4;
67
68
  map<string, string> options = 5;
69
+
70
+ int32 available = 6;
68
71
  }
69
72
 
70
73
  message StockMovementResponse {
package/gen/attribute.ts CHANGED
@@ -54,6 +54,7 @@ export interface UpsertAttributesResponse {
54
54
  }
55
55
 
56
56
  export interface GetAllAttributesWithValuesRequest {
57
+ attributeIds: string[];
57
58
  }
58
59
 
59
60
  export interface GetAllAttributesWithValuesResponse {
package/gen/post.ts CHANGED
@@ -170,6 +170,7 @@ export interface GetPostsResponse {
170
170
  export interface GetPostRequest {
171
171
  id: string;
172
172
  slug?: string | undefined;
173
+ publishedOnly: boolean;
173
174
  }
174
175
 
175
176
  export interface CreatePostRequest {
package/gen/stock.ts CHANGED
@@ -51,6 +51,7 @@ export interface VariantStockDetail {
51
51
  barcode?: string | undefined;
52
52
  stock: number;
53
53
  options: { [key: string]: string };
54
+ available: number;
54
55
  }
55
56
 
56
57
  export interface VariantStockDetail_OptionsEntry {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.180",
4
+ "version": "1.0.182",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -62,7 +62,10 @@ message UpsertAttributesResponse {
62
62
  repeated AttributeUpsertResult results = 1;
63
63
  }
64
64
 
65
- message GetAllAttributesWithValuesRequest {}
65
+ message GetAllAttributesWithValuesRequest {
66
+
67
+ repeated string attribute_ids = 1;
68
+ }
66
69
 
67
70
  message GetAllAttributesWithValuesResponse {
68
71
  repeated AttributeWithValuesResponse items = 1;
package/proto/post.proto CHANGED
@@ -140,6 +140,9 @@ message GetPostsResponse {
140
140
  message GetPostRequest {
141
141
  string id = 1;
142
142
  optional string slug = 2;
143
+
144
+
145
+ bool published_only = 3;
143
146
  }
144
147
 
145
148
  message CreatePostRequest {
package/proto/stock.proto CHANGED
@@ -63,8 +63,11 @@ message VariantStockDetail {
63
63
  string variant_id = 1;
64
64
  string sku = 2;
65
65
  optional string barcode = 3;
66
+
66
67
  int32 stock = 4;
67
68
  map<string, string> options = 5;
69
+
70
+ int32 available = 6;
68
71
  }
69
72
 
70
73
  message StockMovementResponse {