@pushwoosh/rpc-gateway-journey-data 0.26.313 → 0.26.314
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/data.js +92 -0
- package/package.json +1 -1
- package/pushwoosh_cj_journey.d.ts +30 -0
package/data.js
CHANGED
|
@@ -243,6 +243,12 @@ export const data = {
|
|
|
243
243
|
"response": "pushwoosh.cj.journey.ValidateJourneyResponse",
|
|
244
244
|
"method": "post",
|
|
245
245
|
"path": "/api/v3/journeygateway/validate"
|
|
246
|
+
},
|
|
247
|
+
"GetWhatsAppPresetsByAppCode": {
|
|
248
|
+
"request": "pushwoosh.cj.journey.GetWhatsAppPresetsByAppCodeRequest",
|
|
249
|
+
"response": "pushwoosh.cj.journey.GetWhatsAppPresetsByAppCodeResponse",
|
|
250
|
+
"method": "get",
|
|
251
|
+
"path": "/api/v2/application/{code}/whatsapp-presets"
|
|
246
252
|
}
|
|
247
253
|
}
|
|
248
254
|
},
|
|
@@ -3907,6 +3913,92 @@ export const data = {
|
|
|
3907
3913
|
}
|
|
3908
3914
|
}
|
|
3909
3915
|
},
|
|
3916
|
+
"pushwoosh.cj.journey.GetWhatsAppPresetsByAppCodeRequest": {
|
|
3917
|
+
"type": "I",
|
|
3918
|
+
"fields": {
|
|
3919
|
+
"code": {
|
|
3920
|
+
"type": "string"
|
|
3921
|
+
}
|
|
3922
|
+
}
|
|
3923
|
+
},
|
|
3924
|
+
"pushwoosh.cj.journey.GetWhatsAppPresetsByAppCodeResponse": {
|
|
3925
|
+
"type": "I",
|
|
3926
|
+
"fields": {
|
|
3927
|
+
"payload": {
|
|
3928
|
+
"type": "pushwoosh.cj.journey.WhatsAppPresetsByAppCodePayload"
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
},
|
|
3932
|
+
"pushwoosh.cj.journey.WhatsAppPresetsByAppCodePayload": {
|
|
3933
|
+
"type": "I",
|
|
3934
|
+
"fields": {
|
|
3935
|
+
"items": {
|
|
3936
|
+
"type": "pushwoosh.cj.journey.WhatsAppPresetByAppCodeItem",
|
|
3937
|
+
"array": true
|
|
3938
|
+
}
|
|
3939
|
+
}
|
|
3940
|
+
},
|
|
3941
|
+
"pushwoosh.cj.journey.WhatsAppPresetByAppCodeItem": {
|
|
3942
|
+
"type": "I",
|
|
3943
|
+
"fields": {
|
|
3944
|
+
"content": {
|
|
3945
|
+
"type": "string"
|
|
3946
|
+
},
|
|
3947
|
+
"code": {
|
|
3948
|
+
"type": "string"
|
|
3949
|
+
},
|
|
3950
|
+
"name": {
|
|
3951
|
+
"type": "string"
|
|
3952
|
+
},
|
|
3953
|
+
"headerType": {
|
|
3954
|
+
"type": "string"
|
|
3955
|
+
},
|
|
3956
|
+
"headerVariables": {
|
|
3957
|
+
"type": "string",
|
|
3958
|
+
"array": true
|
|
3959
|
+
},
|
|
3960
|
+
"headerText": {
|
|
3961
|
+
"type": "string"
|
|
3962
|
+
},
|
|
3963
|
+
"variables": {
|
|
3964
|
+
"type": "string",
|
|
3965
|
+
"array": true
|
|
3966
|
+
},
|
|
3967
|
+
"quickReplies": {
|
|
3968
|
+
"type": "pushwoosh.cj.journey.WhatsAppPresetQuickReply",
|
|
3969
|
+
"array": true
|
|
3970
|
+
},
|
|
3971
|
+
"buttonUrlVariables": {
|
|
3972
|
+
"type": "pushwoosh.cj.journey.WhatsAppButtonURLVariables",
|
|
3973
|
+
"array": true
|
|
3974
|
+
}
|
|
3975
|
+
}
|
|
3976
|
+
},
|
|
3977
|
+
"pushwoosh.cj.journey.WhatsAppPresetQuickReply": {
|
|
3978
|
+
"type": "I",
|
|
3979
|
+
"fields": {
|
|
3980
|
+
"name": {
|
|
3981
|
+
"type": "string"
|
|
3982
|
+
},
|
|
3983
|
+
"output": {
|
|
3984
|
+
"type": "string"
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
},
|
|
3988
|
+
"pushwoosh.cj.journey.WhatsAppButtonURLVariables": {
|
|
3989
|
+
"type": "I",
|
|
3990
|
+
"fields": {
|
|
3991
|
+
"index": {
|
|
3992
|
+
"type": "number"
|
|
3993
|
+
},
|
|
3994
|
+
"text": {
|
|
3995
|
+
"type": "string"
|
|
3996
|
+
},
|
|
3997
|
+
"url": {
|
|
3998
|
+
"type": "string"
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
},
|
|
3910
4002
|
"pushwoosh.cj.journey_category.Category": {
|
|
3911
4003
|
"type": "S",
|
|
3912
4004
|
"key": "category",
|
package/package.json
CHANGED
|
@@ -41,6 +41,7 @@ export interface Journey {
|
|
|
41
41
|
RenameV2(request: RenameV2Request): Promise<RenameJourneyResponse>;
|
|
42
42
|
UpdateABSSplitterParamsV2(request: UpdateABSSplitterParamsV2Request): Promise<UpdateABSSplitterParamsResponse>;
|
|
43
43
|
ValidateJourneyV2(request: ValidateJourneyV2Request): Promise<ValidateJourneyResponse>;
|
|
44
|
+
GetWhatsAppPresetsByAppCode(request: GetWhatsAppPresetsByAppCodeRequest): Promise<GetWhatsAppPresetsByAppCodeResponse>;
|
|
44
45
|
}
|
|
45
46
|
export type GetPlaceholdersRequest = {
|
|
46
47
|
templateCode?: string;
|
|
@@ -1447,3 +1448,32 @@ export type GetVoucherPoolsResponse = {
|
|
|
1447
1448
|
export type VoucherPool = {
|
|
1448
1449
|
name: string;
|
|
1449
1450
|
};
|
|
1451
|
+
export type GetWhatsAppPresetsByAppCodeRequest = {
|
|
1452
|
+
code?: string;
|
|
1453
|
+
};
|
|
1454
|
+
export type GetWhatsAppPresetsByAppCodeResponse = {
|
|
1455
|
+
payload: WhatsAppPresetsByAppCodePayload;
|
|
1456
|
+
};
|
|
1457
|
+
export type WhatsAppPresetsByAppCodePayload = {
|
|
1458
|
+
items: WhatsAppPresetByAppCodeItem[];
|
|
1459
|
+
};
|
|
1460
|
+
export type WhatsAppPresetByAppCodeItem = {
|
|
1461
|
+
content: string;
|
|
1462
|
+
code: string;
|
|
1463
|
+
name: string;
|
|
1464
|
+
headerType: string;
|
|
1465
|
+
headerVariables: string[];
|
|
1466
|
+
headerText: string;
|
|
1467
|
+
variables: string[];
|
|
1468
|
+
quickReplies: WhatsAppPresetQuickReply[];
|
|
1469
|
+
buttonUrlVariables: WhatsAppButtonURLVariables[];
|
|
1470
|
+
};
|
|
1471
|
+
export type WhatsAppPresetQuickReply = {
|
|
1472
|
+
name: string;
|
|
1473
|
+
output: string;
|
|
1474
|
+
};
|
|
1475
|
+
export type WhatsAppButtonURLVariables = {
|
|
1476
|
+
index: number;
|
|
1477
|
+
text: string;
|
|
1478
|
+
url: string;
|
|
1479
|
+
};
|