@pushwoosh/rpc-v2-http-api-data 0.1.701 → 0.1.703
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 +83 -0
- package/messages.d.ts +2 -0
- package/package.json +1 -1
- package/pushwoosh_export_messages_v2.d.ts +1 -0
- package/whatsapp.d.ts +23 -0
package/data.js
CHANGED
|
@@ -7389,6 +7389,9 @@ export const data = {
|
|
|
7389
7389
|
"statusCode": {
|
|
7390
7390
|
"type": "number"
|
|
7391
7391
|
},
|
|
7392
|
+
"processingErrorType": {
|
|
7393
|
+
"type": "number"
|
|
7394
|
+
},
|
|
7392
7395
|
"application": {
|
|
7393
7396
|
"type": "string"
|
|
7394
7397
|
},
|
|
@@ -10172,6 +10175,14 @@ export const data = {
|
|
|
10172
10175
|
}
|
|
10173
10176
|
}
|
|
10174
10177
|
},
|
|
10178
|
+
"pushwoosh.rpc_v2.messages.GetDeliveryReportResponse.ProcessingErrorsType": {
|
|
10179
|
+
"type": "E",
|
|
10180
|
+
"values": [
|
|
10181
|
+
"processing_unknown",
|
|
10182
|
+
"send",
|
|
10183
|
+
"publish"
|
|
10184
|
+
]
|
|
10185
|
+
},
|
|
10175
10186
|
"pushwoosh.rpc_v2.messages.GetDeliveryReportResponse.MailboxErrorType": {
|
|
10176
10187
|
"type": "E",
|
|
10177
10188
|
"values": [
|
|
@@ -10198,6 +10209,9 @@ export const data = {
|
|
|
10198
10209
|
},
|
|
10199
10210
|
"mailboxErrorType": {
|
|
10200
10211
|
"type": "pushwoosh.rpc_v2.messages.GetDeliveryReportResponse.MailboxErrorType"
|
|
10212
|
+
},
|
|
10213
|
+
"processingErrorType": {
|
|
10214
|
+
"type": "pushwoosh.rpc_v2.messages.GetDeliveryReportResponse.ProcessingErrorsType"
|
|
10201
10215
|
}
|
|
10202
10216
|
}
|
|
10203
10217
|
},
|
|
@@ -21750,6 +21764,12 @@ export const data = {
|
|
|
21750
21764
|
"response": "pushwoosh.rpc_v2.whatsapp.AuthResponseCodeResponse",
|
|
21751
21765
|
"method": "post",
|
|
21752
21766
|
"path": "/api/whatsapp:auth_response_code"
|
|
21767
|
+
},
|
|
21768
|
+
"FetchCatalog": {
|
|
21769
|
+
"request": "pushwoosh.rpc_v2.whatsapp.FetchCatalogRequest",
|
|
21770
|
+
"response": "pushwoosh.rpc_v2.whatsapp.FetchCatalogResponse",
|
|
21771
|
+
"method": "get",
|
|
21772
|
+
"path": "/api/whatsapp/catalog"
|
|
21753
21773
|
}
|
|
21754
21774
|
}
|
|
21755
21775
|
},
|
|
@@ -21804,6 +21824,69 @@ export const data = {
|
|
|
21804
21824
|
"type": "I",
|
|
21805
21825
|
"fields": {}
|
|
21806
21826
|
},
|
|
21827
|
+
"pushwoosh.rpc_v2.whatsapp.FetchCatalogRequest": {
|
|
21828
|
+
"type": "I",
|
|
21829
|
+
"fields": {
|
|
21830
|
+
"application": {
|
|
21831
|
+
"type": "string"
|
|
21832
|
+
}
|
|
21833
|
+
}
|
|
21834
|
+
},
|
|
21835
|
+
"pushwoosh.rpc_v2.whatsapp.FetchCatalogResponse": {
|
|
21836
|
+
"type": "I",
|
|
21837
|
+
"fields": {
|
|
21838
|
+
"catalog": {
|
|
21839
|
+
"type": "pushwoosh.rpc_v2.whatsapp.Catalog"
|
|
21840
|
+
},
|
|
21841
|
+
"products": {
|
|
21842
|
+
"type": "pushwoosh.rpc_v2.whatsapp.Product",
|
|
21843
|
+
"array": true
|
|
21844
|
+
}
|
|
21845
|
+
}
|
|
21846
|
+
},
|
|
21847
|
+
"pushwoosh.rpc_v2.whatsapp.Catalog": {
|
|
21848
|
+
"type": "I",
|
|
21849
|
+
"fields": {
|
|
21850
|
+
"id": {
|
|
21851
|
+
"type": "string"
|
|
21852
|
+
},
|
|
21853
|
+
"name": {
|
|
21854
|
+
"type": "string"
|
|
21855
|
+
},
|
|
21856
|
+
"productCount": {
|
|
21857
|
+
"type": "number"
|
|
21858
|
+
}
|
|
21859
|
+
}
|
|
21860
|
+
},
|
|
21861
|
+
"pushwoosh.rpc_v2.whatsapp.Product": {
|
|
21862
|
+
"type": "I",
|
|
21863
|
+
"fields": {
|
|
21864
|
+
"id": {
|
|
21865
|
+
"type": "string"
|
|
21866
|
+
},
|
|
21867
|
+
"name": {
|
|
21868
|
+
"type": "string"
|
|
21869
|
+
},
|
|
21870
|
+
"description": {
|
|
21871
|
+
"type": "string"
|
|
21872
|
+
},
|
|
21873
|
+
"url": {
|
|
21874
|
+
"type": "string"
|
|
21875
|
+
},
|
|
21876
|
+
"imageUrl": {
|
|
21877
|
+
"type": "string"
|
|
21878
|
+
},
|
|
21879
|
+
"retailerId": {
|
|
21880
|
+
"type": "string"
|
|
21881
|
+
},
|
|
21882
|
+
"price": {
|
|
21883
|
+
"type": "string"
|
|
21884
|
+
},
|
|
21885
|
+
"brand": {
|
|
21886
|
+
"type": "string"
|
|
21887
|
+
}
|
|
21888
|
+
}
|
|
21889
|
+
},
|
|
21807
21890
|
"pushwoosh.rpc_v2.whatsapp_presets.WhatsAppPresetsService": {
|
|
21808
21891
|
"type": "S",
|
|
21809
21892
|
"key": "whatsAppPresets",
|
package/messages.d.ts
CHANGED
|
@@ -133,6 +133,7 @@ export type GetDeliveryReportRequest = {
|
|
|
133
133
|
messageCode?: string;
|
|
134
134
|
campaign?: string;
|
|
135
135
|
};
|
|
136
|
+
export type GetDeliveryReportResponse_ProcessingErrorsType = 'processing_unknown' | 'send' | 'publish';
|
|
136
137
|
export type GetDeliveryReportResponse_MailboxErrorType = 'all' | 'complaints' | 'soft_bounces' | 'hard_bounces';
|
|
137
138
|
export type GetDeliveryReportResponse_DeliveryReport_ReportError = {
|
|
138
139
|
error: string;
|
|
@@ -140,6 +141,7 @@ export type GetDeliveryReportResponse_DeliveryReport_ReportError = {
|
|
|
140
141
|
count: number;
|
|
141
142
|
statusCode: number;
|
|
142
143
|
mailboxErrorType: GetDeliveryReportResponse_MailboxErrorType;
|
|
144
|
+
processingErrorType: GetDeliveryReportResponse_ProcessingErrorsType;
|
|
143
145
|
};
|
|
144
146
|
export type GetDeliveryReportResponse_DeliveryReport = {
|
|
145
147
|
platform: number;
|
package/package.json
CHANGED
package/whatsapp.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export interface WhatsAppService {
|
|
|
2
2
|
RegisterWABA(request: RegisterWABARequest): Promise<RegisterWABAResponse>;
|
|
3
3
|
RegisterWABATwilio(request: RegisterWABATwilioRequest): Promise<RegisterWABATwilioResponse>;
|
|
4
4
|
AuthResponseCode(request: AuthResponseCodeRequest): Promise<AuthResponseCodeResponse>;
|
|
5
|
+
FetchCatalog(request: FetchCatalogRequest): Promise<FetchCatalogResponse>;
|
|
5
6
|
}
|
|
6
7
|
export type RegisterWABARequest = {
|
|
7
8
|
application?: string;
|
|
@@ -20,3 +21,25 @@ export type RegisterWABATwilioRequest = {
|
|
|
20
21
|
phonenumberId?: string;
|
|
21
22
|
};
|
|
22
23
|
export type RegisterWABATwilioResponse = {};
|
|
24
|
+
export type FetchCatalogRequest = {
|
|
25
|
+
application?: string;
|
|
26
|
+
};
|
|
27
|
+
export type FetchCatalogResponse = {
|
|
28
|
+
catalog: Catalog;
|
|
29
|
+
products: Product[];
|
|
30
|
+
};
|
|
31
|
+
export type Catalog = {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
productCount: number;
|
|
35
|
+
};
|
|
36
|
+
export type Product = {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
description: string;
|
|
40
|
+
url: string;
|
|
41
|
+
imageUrl: string;
|
|
42
|
+
retailerId: string;
|
|
43
|
+
price: string;
|
|
44
|
+
brand: string;
|
|
45
|
+
};
|