@pushwoosh/rpc-gateway-journey-data 0.26.363 → 0.26.365
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 +63 -0
- package/package.json +1 -1
- package/pushwoosh_cj_journey.d.ts +20 -0
package/data.js
CHANGED
|
@@ -267,6 +267,12 @@ export const data = {
|
|
|
267
267
|
"response": "pushwoosh.cj.journey.GetEmailPresetsByAppCodeResponse",
|
|
268
268
|
"method": "get",
|
|
269
269
|
"path": "/api/application/{code}/email-preset"
|
|
270
|
+
},
|
|
271
|
+
"TestWebhook": {
|
|
272
|
+
"request": "pushwoosh.cj.journey.TestWebhookRequest",
|
|
273
|
+
"response": "pushwoosh.cj.journey.TestWebhookResponse",
|
|
274
|
+
"method": "post",
|
|
275
|
+
"path": "/api/v2/journeygateway/test-webhook"
|
|
270
276
|
}
|
|
271
277
|
}
|
|
272
278
|
},
|
|
@@ -4741,6 +4747,63 @@ export const data = {
|
|
|
4741
4747
|
}
|
|
4742
4748
|
}
|
|
4743
4749
|
},
|
|
4750
|
+
"pushwoosh.cj.journey.TestWebhookRequest.TemplateData": {
|
|
4751
|
+
"type": "I",
|
|
4752
|
+
"fields": {
|
|
4753
|
+
"hwid": {
|
|
4754
|
+
"type": "string"
|
|
4755
|
+
},
|
|
4756
|
+
"userId": {
|
|
4757
|
+
"type": "string"
|
|
4758
|
+
},
|
|
4759
|
+
"appCode": {
|
|
4760
|
+
"type": "string"
|
|
4761
|
+
},
|
|
4762
|
+
"tags": {
|
|
4763
|
+
"type": "string",
|
|
4764
|
+
"mapKeyType": "string"
|
|
4765
|
+
},
|
|
4766
|
+
"eventAttributes": {
|
|
4767
|
+
"type": "string",
|
|
4768
|
+
"mapKeyType": "string"
|
|
4769
|
+
}
|
|
4770
|
+
}
|
|
4771
|
+
},
|
|
4772
|
+
"pushwoosh.cj.journey.TestWebhookRequest": {
|
|
4773
|
+
"type": "I",
|
|
4774
|
+
"fields": {
|
|
4775
|
+
"method": {
|
|
4776
|
+
"type": "string"
|
|
4777
|
+
},
|
|
4778
|
+
"url": {
|
|
4779
|
+
"type": "string"
|
|
4780
|
+
},
|
|
4781
|
+
"template": {
|
|
4782
|
+
"type": "string"
|
|
4783
|
+
},
|
|
4784
|
+
"headers": {
|
|
4785
|
+
"type": "string",
|
|
4786
|
+
"mapKeyType": "string"
|
|
4787
|
+
},
|
|
4788
|
+
"templateData": {
|
|
4789
|
+
"type": "pushwoosh.cj.journey.TestWebhookRequest.TemplateData"
|
|
4790
|
+
}
|
|
4791
|
+
}
|
|
4792
|
+
},
|
|
4793
|
+
"pushwoosh.cj.journey.TestWebhookResponse": {
|
|
4794
|
+
"type": "I",
|
|
4795
|
+
"fields": {
|
|
4796
|
+
"ok": {
|
|
4797
|
+
"type": "boolean"
|
|
4798
|
+
},
|
|
4799
|
+
"statusCode": {
|
|
4800
|
+
"type": "number"
|
|
4801
|
+
},
|
|
4802
|
+
"body": {
|
|
4803
|
+
"type": "string"
|
|
4804
|
+
}
|
|
4805
|
+
}
|
|
4806
|
+
},
|
|
4744
4807
|
"pushwoosh.cj.journey_category.Category": {
|
|
4745
4808
|
"type": "S",
|
|
4746
4809
|
"key": "category",
|
package/package.json
CHANGED
|
@@ -45,6 +45,7 @@ export interface Journey {
|
|
|
45
45
|
ValidateJourneyV2(request: ValidateJourneyV2Request): Promise<ValidateJourneyResponse>;
|
|
46
46
|
GetWhatsAppPresetsByAppCode(request: GetWhatsAppPresetsByAppCodeRequest): Promise<GetWhatsAppPresetsByAppCodeResponse>;
|
|
47
47
|
GetEmailPresetsByAppCode(request: GetEmailPresetsByAppCodeRequest): Promise<GetEmailPresetsByAppCodeResponse>;
|
|
48
|
+
TestWebhook(request: TestWebhookRequest): Promise<TestWebhookResponse>;
|
|
48
49
|
}
|
|
49
50
|
export type GetPlaceholdersRequest = {
|
|
50
51
|
templateCode?: string;
|
|
@@ -1725,3 +1726,22 @@ export type SendFrom = {
|
|
|
1725
1726
|
name: string;
|
|
1726
1727
|
email: string;
|
|
1727
1728
|
};
|
|
1729
|
+
export type TestWebhookRequest_TemplateData = {
|
|
1730
|
+
hwid: string;
|
|
1731
|
+
userId: string;
|
|
1732
|
+
appCode: string;
|
|
1733
|
+
tags: Record<string, string>;
|
|
1734
|
+
eventAttributes: Record<string, string>;
|
|
1735
|
+
};
|
|
1736
|
+
export type TestWebhookRequest = {
|
|
1737
|
+
method?: string;
|
|
1738
|
+
url?: string;
|
|
1739
|
+
template?: string;
|
|
1740
|
+
headers?: Record<string, string>;
|
|
1741
|
+
templateData?: TestWebhookRequest_TemplateData;
|
|
1742
|
+
};
|
|
1743
|
+
export type TestWebhookResponse = {
|
|
1744
|
+
ok: boolean;
|
|
1745
|
+
statusCode: number;
|
|
1746
|
+
body: string;
|
|
1747
|
+
};
|