@platfformx/proto-contracts 1.6.4 → 1.6.6
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import { Timestamp } from "../google/protobuf/timestamp";
|
|
3
2
|
export declare const protobufPackage = "promo.v1";
|
|
4
3
|
export declare enum TargetType {
|
|
5
4
|
TARGET_TYPE_UNSPECIFIED = 0,
|
|
@@ -32,8 +31,8 @@ export interface CreatePromocodeRequest {
|
|
|
32
31
|
discountValue: string;
|
|
33
32
|
promocodeType: PromocodeType;
|
|
34
33
|
maxUses: number;
|
|
35
|
-
startDate:
|
|
36
|
-
endDate:
|
|
34
|
+
startDate: string;
|
|
35
|
+
endDate: string;
|
|
37
36
|
}
|
|
38
37
|
export interface CreatePromocodeResponse {
|
|
39
38
|
promocodeId: string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,6 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package promo.v1;
|
|
4
4
|
|
|
5
|
-
import "google/protobuf/timestamp.proto";
|
|
6
5
|
|
|
7
6
|
service PromoService {
|
|
8
7
|
rpc CreatePromocode (CreatePromocodeRequest) returns (CreatePromocodeResponse);
|
|
@@ -21,8 +20,8 @@ message CreatePromocodeRequest {
|
|
|
21
20
|
string discount_value = 6;
|
|
22
21
|
PromocodeType promocode_type = 7;
|
|
23
22
|
int32 max_uses = 8;
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
string start_date = 9;
|
|
24
|
+
string end_date = 10;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
|