@pushwoosh/rpc-v2-http-api-data 0.1.998 → 0.1.1000
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.
|
@@ -139,7 +139,23 @@ export type SmsConfiguration_provider_mobipace = {
|
|
|
139
139
|
type: 'mobipace';
|
|
140
140
|
data: SmsMobipaceConfiguration;
|
|
141
141
|
};
|
|
142
|
-
export type
|
|
142
|
+
export type SmsConfiguration_provider_smscenter = {
|
|
143
|
+
type: 'smscenter';
|
|
144
|
+
data: SmsCenterConfiguration;
|
|
145
|
+
};
|
|
146
|
+
export type SmsConfiguration_provider_smstraffic = {
|
|
147
|
+
type: 'smstraffic';
|
|
148
|
+
data: SmsTrafficConfiguration;
|
|
149
|
+
};
|
|
150
|
+
export type SmsConfiguration_provider_textmecoil = {
|
|
151
|
+
type: 'textmecoil';
|
|
152
|
+
data: SmsTextMeCoIlConfiguration;
|
|
153
|
+
};
|
|
154
|
+
export type SmsConfiguration_provider_ablemobile = {
|
|
155
|
+
type: 'ablemobile';
|
|
156
|
+
data: SmsAbleMobileConfiguration;
|
|
157
|
+
};
|
|
158
|
+
export type SmsConfiguration_provider = SmsConfiguration_provider_twilio | SmsConfiguration_provider_amazon | SmsConfiguration_provider_smsGlobal | SmsConfiguration_provider_smsala | SmsConfiguration_provider_capitolemobile | SmsConfiguration_provider_mobipace | SmsConfiguration_provider_smscenter | SmsConfiguration_provider_smstraffic | SmsConfiguration_provider_textmecoil | SmsConfiguration_provider_ablemobile;
|
|
143
159
|
/**
|
|
144
160
|
* SmsConfiguration carries per-application SMS provider credentials. Exactly
|
|
145
161
|
* one provider must be set; the chosen oneof field selects which gateway
|
|
@@ -183,6 +199,25 @@ export type SmsMobipaceConfiguration = {
|
|
|
183
199
|
mobipacePassword: string;
|
|
184
200
|
mobipaceSenderId: string;
|
|
185
201
|
};
|
|
202
|
+
export type SmsCenterConfiguration = {
|
|
203
|
+
smsCenterLogin: string;
|
|
204
|
+
smsCenterPassword: string;
|
|
205
|
+
smsCenterSenderId: string;
|
|
206
|
+
};
|
|
207
|
+
export type SmsTrafficConfiguration = {
|
|
208
|
+
smsSmstrafficLogin: string;
|
|
209
|
+
smsSmstrafficPassword: string;
|
|
210
|
+
};
|
|
211
|
+
export type SmsTextMeCoIlConfiguration = {
|
|
212
|
+
textmecoilUsername: string;
|
|
213
|
+
textmecoilPassword: string;
|
|
214
|
+
textmecoilPhoneNumber: string;
|
|
215
|
+
};
|
|
216
|
+
export type SmsAbleMobileConfiguration = {
|
|
217
|
+
ablemobileLogin: string;
|
|
218
|
+
ablemobilePassword: string;
|
|
219
|
+
ablemobileSenderId: string;
|
|
220
|
+
};
|
|
186
221
|
export type ConfigurationRequest_kind_androidConfiguration = {
|
|
187
222
|
type: 'androidConfiguration';
|
|
188
223
|
data: AndroidConfiguration;
|
package/data.js
CHANGED
|
@@ -3736,6 +3736,18 @@ export const data = {
|
|
|
3736
3736
|
},
|
|
3737
3737
|
"mobipace": {
|
|
3738
3738
|
"type": "pushwoosh.rpc_v2.applications_configurations.SmsMobipaceConfiguration"
|
|
3739
|
+
},
|
|
3740
|
+
"smscenter": {
|
|
3741
|
+
"type": "pushwoosh.rpc_v2.applications_configurations.SmsCenterConfiguration"
|
|
3742
|
+
},
|
|
3743
|
+
"smstraffic": {
|
|
3744
|
+
"type": "pushwoosh.rpc_v2.applications_configurations.SmsTrafficConfiguration"
|
|
3745
|
+
},
|
|
3746
|
+
"textmecoil": {
|
|
3747
|
+
"type": "pushwoosh.rpc_v2.applications_configurations.SmsTextMeCoIlConfiguration"
|
|
3748
|
+
},
|
|
3749
|
+
"ablemobile": {
|
|
3750
|
+
"type": "pushwoosh.rpc_v2.applications_configurations.SmsAbleMobileConfiguration"
|
|
3739
3751
|
}
|
|
3740
3752
|
},
|
|
3741
3753
|
"oneofs": {
|
|
@@ -3746,7 +3758,11 @@ export const data = {
|
|
|
3746
3758
|
"smsGlobal",
|
|
3747
3759
|
"smsala",
|
|
3748
3760
|
"capitolemobile",
|
|
3749
|
-
"mobipace"
|
|
3761
|
+
"mobipace",
|
|
3762
|
+
"smscenter",
|
|
3763
|
+
"smstraffic",
|
|
3764
|
+
"textmecoil",
|
|
3765
|
+
"ablemobile"
|
|
3750
3766
|
]
|
|
3751
3767
|
}
|
|
3752
3768
|
}
|
|
@@ -3844,6 +3860,59 @@ export const data = {
|
|
|
3844
3860
|
}
|
|
3845
3861
|
}
|
|
3846
3862
|
},
|
|
3863
|
+
"pushwoosh.rpc_v2.applications_configurations.SmsCenterConfiguration": {
|
|
3864
|
+
"type": "I",
|
|
3865
|
+
"fields": {
|
|
3866
|
+
"smsCenterLogin": {
|
|
3867
|
+
"type": "string"
|
|
3868
|
+
},
|
|
3869
|
+
"smsCenterPassword": {
|
|
3870
|
+
"type": "string"
|
|
3871
|
+
},
|
|
3872
|
+
"smsCenterSenderId": {
|
|
3873
|
+
"type": "string"
|
|
3874
|
+
}
|
|
3875
|
+
}
|
|
3876
|
+
},
|
|
3877
|
+
"pushwoosh.rpc_v2.applications_configurations.SmsTrafficConfiguration": {
|
|
3878
|
+
"type": "I",
|
|
3879
|
+
"fields": {
|
|
3880
|
+
"smsSmstrafficLogin": {
|
|
3881
|
+
"type": "string"
|
|
3882
|
+
},
|
|
3883
|
+
"smsSmstrafficPassword": {
|
|
3884
|
+
"type": "string"
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
},
|
|
3888
|
+
"pushwoosh.rpc_v2.applications_configurations.SmsTextMeCoIlConfiguration": {
|
|
3889
|
+
"type": "I",
|
|
3890
|
+
"fields": {
|
|
3891
|
+
"textmecoilUsername": {
|
|
3892
|
+
"type": "string"
|
|
3893
|
+
},
|
|
3894
|
+
"textmecoilPassword": {
|
|
3895
|
+
"type": "string"
|
|
3896
|
+
},
|
|
3897
|
+
"textmecoilPhoneNumber": {
|
|
3898
|
+
"type": "string"
|
|
3899
|
+
}
|
|
3900
|
+
}
|
|
3901
|
+
},
|
|
3902
|
+
"pushwoosh.rpc_v2.applications_configurations.SmsAbleMobileConfiguration": {
|
|
3903
|
+
"type": "I",
|
|
3904
|
+
"fields": {
|
|
3905
|
+
"ablemobileLogin": {
|
|
3906
|
+
"type": "string"
|
|
3907
|
+
},
|
|
3908
|
+
"ablemobilePassword": {
|
|
3909
|
+
"type": "string"
|
|
3910
|
+
},
|
|
3911
|
+
"ablemobileSenderId": {
|
|
3912
|
+
"type": "string"
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3915
|
+
},
|
|
3847
3916
|
"pushwoosh.rpc_v2.applications_configurations.ConfigurationRequest": {
|
|
3848
3917
|
"type": "I",
|
|
3849
3918
|
"fields": {
|
|
@@ -10091,6 +10160,312 @@ export const data = {
|
|
|
10091
10160
|
}
|
|
10092
10161
|
}
|
|
10093
10162
|
},
|
|
10163
|
+
"pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Create_FieldViolations": {
|
|
10164
|
+
"type": "E",
|
|
10165
|
+
"values": [
|
|
10166
|
+
"CREATE_FV_UNSPECIFIED",
|
|
10167
|
+
"CREATE_CONNECTION_REQUIRED",
|
|
10168
|
+
"CREATE_HOST_EMPTY",
|
|
10169
|
+
"CREATE_DATABASE_EMPTY",
|
|
10170
|
+
"CREATE_USER_EMPTY",
|
|
10171
|
+
"CREATE_QUERY_EMPTY",
|
|
10172
|
+
"CREATE_HOST_NOT_ALLOWED"
|
|
10173
|
+
]
|
|
10174
|
+
},
|
|
10175
|
+
"pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Update_FieldViolations": {
|
|
10176
|
+
"type": "E",
|
|
10177
|
+
"values": [
|
|
10178
|
+
"UPDATE_FV_UNSPECIFIED",
|
|
10179
|
+
"UPDATE_CODE_EMPTY",
|
|
10180
|
+
"UPDATE_HOST_EMPTY",
|
|
10181
|
+
"UPDATE_DATABASE_EMPTY",
|
|
10182
|
+
"UPDATE_USER_EMPTY",
|
|
10183
|
+
"UPDATE_QUERY_EMPTY",
|
|
10184
|
+
"UPDATE_HOST_NOT_ALLOWED"
|
|
10185
|
+
]
|
|
10186
|
+
},
|
|
10187
|
+
"pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Update_FailedPreconditions": {
|
|
10188
|
+
"type": "E",
|
|
10189
|
+
"values": [
|
|
10190
|
+
"UPDATE_FP_UNSPECIFIED",
|
|
10191
|
+
"UPDATE_SEGMENT_NOT_FOUND",
|
|
10192
|
+
"UPDATE_KIND_MISMATCH"
|
|
10193
|
+
]
|
|
10194
|
+
},
|
|
10195
|
+
"pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Delete_FailedPreconditions": {
|
|
10196
|
+
"type": "E",
|
|
10197
|
+
"values": [
|
|
10198
|
+
"DELETE_FP_UNSPECIFIED",
|
|
10199
|
+
"DELETE_SEGMENT_NOT_FOUND"
|
|
10200
|
+
]
|
|
10201
|
+
},
|
|
10202
|
+
"pushwoosh.rpc.external_segments.v3.ExternalSegmentsService": {
|
|
10203
|
+
"type": "S",
|
|
10204
|
+
"key": "externalSegments",
|
|
10205
|
+
"methods": {
|
|
10206
|
+
"List": {
|
|
10207
|
+
"request": "pushwoosh.rpc.external_segments.v3.ListRequest",
|
|
10208
|
+
"response": "pushwoosh.rpc.external_segments.v3.ListResponse",
|
|
10209
|
+
"method": "get",
|
|
10210
|
+
"path": "/api/external-segments",
|
|
10211
|
+
"errors": {
|
|
10212
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
10213
|
+
}
|
|
10214
|
+
},
|
|
10215
|
+
"Get": {
|
|
10216
|
+
"request": "pushwoosh.rpc.external_segments.v3.GetRequest",
|
|
10217
|
+
"response": "pushwoosh.rpc.external_segments.v3.GetResponse",
|
|
10218
|
+
"method": "get",
|
|
10219
|
+
"path": "/api/external-segments/{code}",
|
|
10220
|
+
"errors": {
|
|
10221
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
10222
|
+
}
|
|
10223
|
+
},
|
|
10224
|
+
"Create": {
|
|
10225
|
+
"request": "pushwoosh.rpc.external_segments.v3.CreateRequest",
|
|
10226
|
+
"response": "pushwoosh.rpc.external_segments.v3.CreateResponse",
|
|
10227
|
+
"method": "post",
|
|
10228
|
+
"path": "/api/external-segments",
|
|
10229
|
+
"errors": {
|
|
10230
|
+
"fieldViolations": "pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Create_FieldViolations",
|
|
10231
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
10232
|
+
}
|
|
10233
|
+
},
|
|
10234
|
+
"Update": {
|
|
10235
|
+
"request": "pushwoosh.rpc.external_segments.v3.UpdateRequest",
|
|
10236
|
+
"response": "pushwoosh.rpc.external_segments.v3.UpdateResponse",
|
|
10237
|
+
"method": "put",
|
|
10238
|
+
"path": "/api/external-segments/{code}",
|
|
10239
|
+
"errors": {
|
|
10240
|
+
"fieldViolations": "pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Update_FieldViolations",
|
|
10241
|
+
"failedPreconditions": "pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Update_FailedPreconditions",
|
|
10242
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
10243
|
+
}
|
|
10244
|
+
},
|
|
10245
|
+
"Delete": {
|
|
10246
|
+
"request": "pushwoosh.rpc.external_segments.v3.DeleteRequest",
|
|
10247
|
+
"response": "pushwoosh.rpc.external_segments.v3.DeleteResponse",
|
|
10248
|
+
"method": "delete",
|
|
10249
|
+
"path": "/api/external-segments/{code}",
|
|
10250
|
+
"errors": {
|
|
10251
|
+
"failedPreconditions": "pushwoosh.rpc.external_segments.v3.ExternalSegmentsService_Delete_FailedPreconditions",
|
|
10252
|
+
"commonFailedPreconditions": "pushwoosh.rpc.errors.v3.Common_FailedPreconditions"
|
|
10253
|
+
}
|
|
10254
|
+
}
|
|
10255
|
+
}
|
|
10256
|
+
},
|
|
10257
|
+
"pushwoosh.rpc.external_segments.v3.PostgresConnection": {
|
|
10258
|
+
"type": "I",
|
|
10259
|
+
"fields": {
|
|
10260
|
+
"host": {
|
|
10261
|
+
"type": "string"
|
|
10262
|
+
},
|
|
10263
|
+
"port": {
|
|
10264
|
+
"type": "number"
|
|
10265
|
+
},
|
|
10266
|
+
"user": {
|
|
10267
|
+
"type": "string"
|
|
10268
|
+
},
|
|
10269
|
+
"password": {
|
|
10270
|
+
"type": "string"
|
|
10271
|
+
},
|
|
10272
|
+
"database": {
|
|
10273
|
+
"type": "string"
|
|
10274
|
+
},
|
|
10275
|
+
"options": {
|
|
10276
|
+
"type": "string",
|
|
10277
|
+
"mapKeyType": "string"
|
|
10278
|
+
}
|
|
10279
|
+
}
|
|
10280
|
+
},
|
|
10281
|
+
"pushwoosh.rpc.external_segments.v3.MysqlConnection": {
|
|
10282
|
+
"type": "I",
|
|
10283
|
+
"fields": {
|
|
10284
|
+
"host": {
|
|
10285
|
+
"type": "string"
|
|
10286
|
+
},
|
|
10287
|
+
"port": {
|
|
10288
|
+
"type": "number"
|
|
10289
|
+
},
|
|
10290
|
+
"user": {
|
|
10291
|
+
"type": "string"
|
|
10292
|
+
},
|
|
10293
|
+
"password": {
|
|
10294
|
+
"type": "string"
|
|
10295
|
+
},
|
|
10296
|
+
"database": {
|
|
10297
|
+
"type": "string"
|
|
10298
|
+
},
|
|
10299
|
+
"params": {
|
|
10300
|
+
"type": "string",
|
|
10301
|
+
"mapKeyType": "string"
|
|
10302
|
+
}
|
|
10303
|
+
}
|
|
10304
|
+
},
|
|
10305
|
+
"pushwoosh.rpc.external_segments.v3.ExternalSegment": {
|
|
10306
|
+
"type": "I",
|
|
10307
|
+
"fields": {
|
|
10308
|
+
"application": {
|
|
10309
|
+
"type": "string"
|
|
10310
|
+
},
|
|
10311
|
+
"code": {
|
|
10312
|
+
"type": "string"
|
|
10313
|
+
},
|
|
10314
|
+
"postgres": {
|
|
10315
|
+
"type": "pushwoosh.rpc.external_segments.v3.PostgresConnection"
|
|
10316
|
+
},
|
|
10317
|
+
"mysql": {
|
|
10318
|
+
"type": "pushwoosh.rpc.external_segments.v3.MysqlConnection"
|
|
10319
|
+
},
|
|
10320
|
+
"query": {
|
|
10321
|
+
"type": "string"
|
|
10322
|
+
},
|
|
10323
|
+
"valid": {
|
|
10324
|
+
"type": "boolean"
|
|
10325
|
+
},
|
|
10326
|
+
"lastRequestedAt": {
|
|
10327
|
+
"type": "Date"
|
|
10328
|
+
},
|
|
10329
|
+
"lastError": {
|
|
10330
|
+
"type": "string"
|
|
10331
|
+
},
|
|
10332
|
+
"generation": {
|
|
10333
|
+
"type": "number"
|
|
10334
|
+
},
|
|
10335
|
+
"createdAt": {
|
|
10336
|
+
"type": "Date"
|
|
10337
|
+
}
|
|
10338
|
+
},
|
|
10339
|
+
"oneofs": {
|
|
10340
|
+
"connection": {
|
|
10341
|
+
"oneof": [
|
|
10342
|
+
"postgres",
|
|
10343
|
+
"mysql"
|
|
10344
|
+
]
|
|
10345
|
+
}
|
|
10346
|
+
}
|
|
10347
|
+
},
|
|
10348
|
+
"pushwoosh.rpc.external_segments.v3.ListRequest": {
|
|
10349
|
+
"type": "I",
|
|
10350
|
+
"fields": {
|
|
10351
|
+
"application": {
|
|
10352
|
+
"type": "string"
|
|
10353
|
+
}
|
|
10354
|
+
}
|
|
10355
|
+
},
|
|
10356
|
+
"pushwoosh.rpc.external_segments.v3.ListResponse": {
|
|
10357
|
+
"type": "I",
|
|
10358
|
+
"fields": {
|
|
10359
|
+
"segments": {
|
|
10360
|
+
"type": "pushwoosh.rpc.external_segments.v3.ExternalSegment",
|
|
10361
|
+
"array": true
|
|
10362
|
+
}
|
|
10363
|
+
}
|
|
10364
|
+
},
|
|
10365
|
+
"pushwoosh.rpc.external_segments.v3.GetRequest": {
|
|
10366
|
+
"type": "I",
|
|
10367
|
+
"fields": {
|
|
10368
|
+
"application": {
|
|
10369
|
+
"type": "string"
|
|
10370
|
+
},
|
|
10371
|
+
"code": {
|
|
10372
|
+
"type": "string"
|
|
10373
|
+
}
|
|
10374
|
+
}
|
|
10375
|
+
},
|
|
10376
|
+
"pushwoosh.rpc.external_segments.v3.GetResponse": {
|
|
10377
|
+
"type": "I",
|
|
10378
|
+
"fields": {
|
|
10379
|
+
"segment": {
|
|
10380
|
+
"type": "pushwoosh.rpc.external_segments.v3.ExternalSegment"
|
|
10381
|
+
}
|
|
10382
|
+
}
|
|
10383
|
+
},
|
|
10384
|
+
"pushwoosh.rpc.external_segments.v3.CreateRequest": {
|
|
10385
|
+
"type": "I",
|
|
10386
|
+
"fields": {
|
|
10387
|
+
"application": {
|
|
10388
|
+
"type": "string"
|
|
10389
|
+
},
|
|
10390
|
+
"postgres": {
|
|
10391
|
+
"type": "pushwoosh.rpc.external_segments.v3.PostgresConnection"
|
|
10392
|
+
},
|
|
10393
|
+
"mysql": {
|
|
10394
|
+
"type": "pushwoosh.rpc.external_segments.v3.MysqlConnection"
|
|
10395
|
+
},
|
|
10396
|
+
"query": {
|
|
10397
|
+
"type": "string"
|
|
10398
|
+
}
|
|
10399
|
+
},
|
|
10400
|
+
"oneofs": {
|
|
10401
|
+
"connection": {
|
|
10402
|
+
"oneof": [
|
|
10403
|
+
"postgres",
|
|
10404
|
+
"mysql"
|
|
10405
|
+
]
|
|
10406
|
+
}
|
|
10407
|
+
}
|
|
10408
|
+
},
|
|
10409
|
+
"pushwoosh.rpc.external_segments.v3.CreateResponse": {
|
|
10410
|
+
"type": "I",
|
|
10411
|
+
"fields": {
|
|
10412
|
+
"segment": {
|
|
10413
|
+
"type": "pushwoosh.rpc.external_segments.v3.ExternalSegment"
|
|
10414
|
+
}
|
|
10415
|
+
}
|
|
10416
|
+
},
|
|
10417
|
+
"pushwoosh.rpc.external_segments.v3.UpdateRequest": {
|
|
10418
|
+
"type": "I",
|
|
10419
|
+
"fields": {
|
|
10420
|
+
"application": {
|
|
10421
|
+
"type": "string"
|
|
10422
|
+
},
|
|
10423
|
+
"code": {
|
|
10424
|
+
"type": "string"
|
|
10425
|
+
},
|
|
10426
|
+
"postgres": {
|
|
10427
|
+
"type": "pushwoosh.rpc.external_segments.v3.PostgresConnection"
|
|
10428
|
+
},
|
|
10429
|
+
"mysql": {
|
|
10430
|
+
"type": "pushwoosh.rpc.external_segments.v3.MysqlConnection"
|
|
10431
|
+
},
|
|
10432
|
+
"query": {
|
|
10433
|
+
"type": "string",
|
|
10434
|
+
"optional": true
|
|
10435
|
+
}
|
|
10436
|
+
},
|
|
10437
|
+
"oneofs": {
|
|
10438
|
+
"connection": {
|
|
10439
|
+
"oneof": [
|
|
10440
|
+
"postgres",
|
|
10441
|
+
"mysql"
|
|
10442
|
+
]
|
|
10443
|
+
}
|
|
10444
|
+
}
|
|
10445
|
+
},
|
|
10446
|
+
"pushwoosh.rpc.external_segments.v3.UpdateResponse": {
|
|
10447
|
+
"type": "I",
|
|
10448
|
+
"fields": {
|
|
10449
|
+
"segment": {
|
|
10450
|
+
"type": "pushwoosh.rpc.external_segments.v3.ExternalSegment"
|
|
10451
|
+
}
|
|
10452
|
+
}
|
|
10453
|
+
},
|
|
10454
|
+
"pushwoosh.rpc.external_segments.v3.DeleteRequest": {
|
|
10455
|
+
"type": "I",
|
|
10456
|
+
"fields": {
|
|
10457
|
+
"application": {
|
|
10458
|
+
"type": "string"
|
|
10459
|
+
},
|
|
10460
|
+
"code": {
|
|
10461
|
+
"type": "string"
|
|
10462
|
+
}
|
|
10463
|
+
}
|
|
10464
|
+
},
|
|
10465
|
+
"pushwoosh.rpc.external_segments.v3.DeleteResponse": {
|
|
10466
|
+
"type": "I",
|
|
10467
|
+
"fields": {}
|
|
10468
|
+
},
|
|
10094
10469
|
"pushwoosh.rpc_v2.filters.FiltersService": {
|
|
10095
10470
|
"type": "S",
|
|
10096
10471
|
"key": "filters",
|
package/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { EmailTemplatesService as pushwoosh_rpc_v2_accounts_EmailTemplatesServic
|
|
|
27
27
|
import { EmailsConfigurationsService as pushwoosh_rpc_v2_emails_configurations_EmailsConfigurationsService } from './emails_configurations';
|
|
28
28
|
import { EventsService as pushwoosh_rpc_v2_events_EventsService } from './events';
|
|
29
29
|
import { ExportStatisticsService as pushwoosh_rpc_v2_export_messages_ExportStatisticsService } from './export_messages';
|
|
30
|
+
import { ExternalSegmentsService as pushwoosh_rpc_external_segments_v3_ExternalSegmentsService } from './pushwoosh_rpc_external_segments_v3';
|
|
30
31
|
import { FiltersService as pushwoosh_rpc_v2_filters_FiltersService } from './filters';
|
|
31
32
|
import { FrequencyCappingService as pushwoosh_rpc_v2_frequency_capping_FrequencyCappingService } from './frequency_capping';
|
|
32
33
|
import { FrequencyCappingDisabledUsersService as pushwoosh_rpc_frequency_capping_disabled_users_v3_FrequencyCappingDisabledUsersService } from './pushwoosh_rpc_frequency_capping_disabled_users_v3';
|
|
@@ -92,6 +93,7 @@ export type API = {
|
|
|
92
93
|
emailsConfigurations: pushwoosh_rpc_v2_emails_configurations_EmailsConfigurationsService;
|
|
93
94
|
events: pushwoosh_rpc_v2_events_EventsService;
|
|
94
95
|
exportStatistics: pushwoosh_rpc_v2_export_messages_ExportStatisticsService;
|
|
96
|
+
externalSegments: pushwoosh_rpc_external_segments_v3_ExternalSegmentsService;
|
|
95
97
|
filters: pushwoosh_rpc_v2_filters_FiltersService;
|
|
96
98
|
frequencyCapping: pushwoosh_rpc_v2_frequency_capping_FrequencyCappingService;
|
|
97
99
|
frequencyCappingDisabledUsers: pushwoosh_rpc_frequency_capping_disabled_users_v3_FrequencyCappingDisabledUsersService;
|
package/package.json
CHANGED
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { RpcMethodV3 } from './commonTypes';
|
|
2
|
+
import { Common_FailedPreconditions as pushwoosh_rpc_errors_v3_Common_FailedPreconditions } from './pushwoosh_rpc_errors_v3';
|
|
3
|
+
export type ExternalSegmentsService_Create_FieldViolations = {
|
|
4
|
+
reason: 'CREATE_FV_UNSPECIFIED';
|
|
5
|
+
field: string;
|
|
6
|
+
description: string;
|
|
7
|
+
} | {
|
|
8
|
+
reason: 'CREATE_CONNECTION_REQUIRED';
|
|
9
|
+
field: string;
|
|
10
|
+
description: string;
|
|
11
|
+
} | {
|
|
12
|
+
reason: 'CREATE_HOST_EMPTY';
|
|
13
|
+
field: string;
|
|
14
|
+
description: string;
|
|
15
|
+
} | {
|
|
16
|
+
reason: 'CREATE_DATABASE_EMPTY';
|
|
17
|
+
field: string;
|
|
18
|
+
description: string;
|
|
19
|
+
} | {
|
|
20
|
+
reason: 'CREATE_USER_EMPTY';
|
|
21
|
+
field: string;
|
|
22
|
+
description: string;
|
|
23
|
+
} | {
|
|
24
|
+
reason: 'CREATE_QUERY_EMPTY';
|
|
25
|
+
field: string;
|
|
26
|
+
description: string;
|
|
27
|
+
} | {
|
|
28
|
+
reason: 'CREATE_HOST_NOT_ALLOWED';
|
|
29
|
+
field: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
export type ExternalSegmentsService_Update_FieldViolations = {
|
|
33
|
+
reason: 'UPDATE_FV_UNSPECIFIED';
|
|
34
|
+
field: string;
|
|
35
|
+
description: string;
|
|
36
|
+
} | {
|
|
37
|
+
reason: 'UPDATE_CODE_EMPTY';
|
|
38
|
+
field: string;
|
|
39
|
+
description: string;
|
|
40
|
+
} | {
|
|
41
|
+
reason: 'UPDATE_HOST_EMPTY';
|
|
42
|
+
field: string;
|
|
43
|
+
description: string;
|
|
44
|
+
} | {
|
|
45
|
+
reason: 'UPDATE_DATABASE_EMPTY';
|
|
46
|
+
field: string;
|
|
47
|
+
description: string;
|
|
48
|
+
} | {
|
|
49
|
+
reason: 'UPDATE_USER_EMPTY';
|
|
50
|
+
field: string;
|
|
51
|
+
description: string;
|
|
52
|
+
} | {
|
|
53
|
+
reason: 'UPDATE_QUERY_EMPTY';
|
|
54
|
+
field: string;
|
|
55
|
+
description: string;
|
|
56
|
+
} | {
|
|
57
|
+
reason: 'UPDATE_HOST_NOT_ALLOWED';
|
|
58
|
+
field: string;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
export type ExternalSegmentsService_Update_FailedPreconditions = {
|
|
62
|
+
type: 'UPDATE_FP_UNSPECIFIED';
|
|
63
|
+
description: string;
|
|
64
|
+
} | {
|
|
65
|
+
type: 'UPDATE_SEGMENT_NOT_FOUND';
|
|
66
|
+
description: string;
|
|
67
|
+
} | {
|
|
68
|
+
type: 'UPDATE_KIND_MISMATCH';
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
export type ExternalSegmentsService_Delete_FailedPreconditions = {
|
|
72
|
+
type: 'DELETE_FP_UNSPECIFIED';
|
|
73
|
+
description: string;
|
|
74
|
+
} | {
|
|
75
|
+
type: 'DELETE_SEGMENT_NOT_FOUND';
|
|
76
|
+
description: string;
|
|
77
|
+
};
|
|
78
|
+
export type ExternalSegmentsService_List = RpcMethodV3<ListRequest, ListResponse, {
|
|
79
|
+
error: unknown;
|
|
80
|
+
failedPreconditions?: undefined;
|
|
81
|
+
} | {
|
|
82
|
+
error?: undefined;
|
|
83
|
+
failedPreconditions?: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
84
|
+
}>;
|
|
85
|
+
export type ExternalSegmentsService_Get = RpcMethodV3<GetRequest, GetResponse, {
|
|
86
|
+
error: unknown;
|
|
87
|
+
failedPreconditions?: undefined;
|
|
88
|
+
} | {
|
|
89
|
+
error?: undefined;
|
|
90
|
+
failedPreconditions?: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
91
|
+
}>;
|
|
92
|
+
export type ExternalSegmentsService_Create = RpcMethodV3<CreateRequest, CreateResponse, {
|
|
93
|
+
error: unknown;
|
|
94
|
+
fieldViolations?: undefined;
|
|
95
|
+
failedPreconditions?: undefined;
|
|
96
|
+
} | {
|
|
97
|
+
error?: undefined;
|
|
98
|
+
fieldViolations?: ExternalSegmentsService_Create_FieldViolations[];
|
|
99
|
+
failedPreconditions?: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
100
|
+
}>;
|
|
101
|
+
export type ExternalSegmentsService_Update = RpcMethodV3<UpdateRequest, UpdateResponse, {
|
|
102
|
+
error: unknown;
|
|
103
|
+
fieldViolations?: undefined;
|
|
104
|
+
failedPreconditions?: undefined;
|
|
105
|
+
} | {
|
|
106
|
+
error?: undefined;
|
|
107
|
+
fieldViolations?: ExternalSegmentsService_Update_FieldViolations[];
|
|
108
|
+
failedPreconditions?: ExternalSegmentsService_Update_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
109
|
+
}>;
|
|
110
|
+
export type ExternalSegmentsService_Delete = RpcMethodV3<DeleteRequest, DeleteResponse, {
|
|
111
|
+
error: unknown;
|
|
112
|
+
failedPreconditions?: undefined;
|
|
113
|
+
} | {
|
|
114
|
+
error?: undefined;
|
|
115
|
+
failedPreconditions?: ExternalSegmentsService_Delete_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
116
|
+
}>;
|
|
117
|
+
/**
|
|
118
|
+
* ExternalSegmentsService manages external segments: user populations materialized
|
|
119
|
+
* from an external database (PostgreSQL / MySQL) via a user-supplied SQL query.
|
|
120
|
+
*
|
|
121
|
+
* Unlike regular segments, an external segment is not built from filter conditions.
|
|
122
|
+
* It stores connection parameters and a query that must return a single "user_id"
|
|
123
|
+
* column. The query is executed and the result materialized by the storage service
|
|
124
|
+
* in background.
|
|
125
|
+
*
|
|
126
|
+
* The caller never deals with a raw connection string nor a database "kind": the
|
|
127
|
+
* database type is implied by which connection message is set, and the backend
|
|
128
|
+
* assembles the proper connection string from the structured parameters.
|
|
129
|
+
*/
|
|
130
|
+
export interface ExternalSegmentsService {
|
|
131
|
+
/** List external segments of the given application. */
|
|
132
|
+
List: ExternalSegmentsService_List;
|
|
133
|
+
/** Get a single external segment by code. */
|
|
134
|
+
Get: ExternalSegmentsService_Get;
|
|
135
|
+
/** Create a new external segment. */
|
|
136
|
+
Create: ExternalSegmentsService_Create;
|
|
137
|
+
/** Update an existing external segment. Only provided fields are changed. */
|
|
138
|
+
Update: ExternalSegmentsService_Update;
|
|
139
|
+
/** Delete an external segment. */
|
|
140
|
+
Delete: ExternalSegmentsService_Delete;
|
|
141
|
+
}
|
|
142
|
+
export type ExternalSegmentsService_Errors = {
|
|
143
|
+
List: {
|
|
144
|
+
failedPreconditions: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
145
|
+
};
|
|
146
|
+
Get: {
|
|
147
|
+
failedPreconditions: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
148
|
+
};
|
|
149
|
+
Create: {
|
|
150
|
+
fieldViolations: ExternalSegmentsService_Create_FieldViolations[];
|
|
151
|
+
failedPreconditions: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
152
|
+
};
|
|
153
|
+
Update: {
|
|
154
|
+
fieldViolations: ExternalSegmentsService_Update_FieldViolations[];
|
|
155
|
+
failedPreconditions: ExternalSegmentsService_Update_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
156
|
+
};
|
|
157
|
+
Delete: {
|
|
158
|
+
failedPreconditions: ExternalSegmentsService_Delete_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* PostgresConnection holds PostgreSQL connection parameters.
|
|
163
|
+
* The backend assembles them into a libpq connection string, e.g.
|
|
164
|
+
* postgresql://user:password@host:port/database?sslmode=disable
|
|
165
|
+
*/
|
|
166
|
+
export type PostgresConnection = {
|
|
167
|
+
/** Database server host. */
|
|
168
|
+
host: string;
|
|
169
|
+
/** Database server port. Defaults to 5432 if zero. */
|
|
170
|
+
port: number;
|
|
171
|
+
/** Database user. */
|
|
172
|
+
user: string;
|
|
173
|
+
/** Database password. Write-only: never returned by read methods. */
|
|
174
|
+
password: string;
|
|
175
|
+
/** Database name. */
|
|
176
|
+
database: string;
|
|
177
|
+
/**
|
|
178
|
+
* Any additional standard libpq connection parameters (e.g. sslmode,
|
|
179
|
+
* connect_timeout, application_name, sslcert, sslkey, sslrootcert,
|
|
180
|
+
* target_session_attrs, options). Keys must be valid libpq keywords.
|
|
181
|
+
*/
|
|
182
|
+
options: Record<string, string>;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* MysqlConnection holds MySQL connection parameters.
|
|
186
|
+
* The backend assembles them into a go-sql-driver DSN, e.g.
|
|
187
|
+
* user:password@tcp(host:port)/database?parseTime=true
|
|
188
|
+
*/
|
|
189
|
+
export type MysqlConnection = {
|
|
190
|
+
/** Database server host. */
|
|
191
|
+
host: string;
|
|
192
|
+
/** Database server port. Defaults to 3306 if zero. */
|
|
193
|
+
port: number;
|
|
194
|
+
/** Database user. */
|
|
195
|
+
user: string;
|
|
196
|
+
/** Database password. Write-only: never returned by read methods. */
|
|
197
|
+
password: string;
|
|
198
|
+
/** Database name. */
|
|
199
|
+
database: string;
|
|
200
|
+
/**
|
|
201
|
+
* Any additional standard DSN parameters (e.g. tls, charset, collation,
|
|
202
|
+
* parseTime, loc, timeout, readTimeout, writeTimeout).
|
|
203
|
+
*/
|
|
204
|
+
params: Record<string, string>;
|
|
205
|
+
};
|
|
206
|
+
export type ExternalSegment_connection_postgres = {
|
|
207
|
+
type: 'postgres';
|
|
208
|
+
data: PostgresConnection;
|
|
209
|
+
};
|
|
210
|
+
export type ExternalSegment_connection_mysql = {
|
|
211
|
+
type: 'mysql';
|
|
212
|
+
data: MysqlConnection;
|
|
213
|
+
};
|
|
214
|
+
export type ExternalSegment_connection = ExternalSegment_connection_postgres | ExternalSegment_connection_mysql;
|
|
215
|
+
/**
|
|
216
|
+
* ExternalSegment is the full representation returned by read methods.
|
|
217
|
+
* It exposes neither the raw connection string nor a database "kind" enum:
|
|
218
|
+
* the database type is conveyed by which connection message is set, and
|
|
219
|
+
* passwords are never returned.
|
|
220
|
+
*/
|
|
221
|
+
export type ExternalSegment = {
|
|
222
|
+
/** Owning application code. */
|
|
223
|
+
application: string;
|
|
224
|
+
/** Unique (within application) external segment code, generated on creation. */
|
|
225
|
+
code: string;
|
|
226
|
+
/** SQL query that returns a single "user_id" column. */
|
|
227
|
+
query: string;
|
|
228
|
+
/** Whether the segment configuration is considered valid and usable. */
|
|
229
|
+
valid: boolean;
|
|
230
|
+
/** Last time the segment was successfully refreshed. Unset if never refreshed. */
|
|
231
|
+
lastRequestedAt: Date;
|
|
232
|
+
/** Error message from the last failed refresh. Empty if the last refresh succeeded. */
|
|
233
|
+
lastError: string;
|
|
234
|
+
/** Materialized snapshot version, incremented on every successful refresh. */
|
|
235
|
+
generation: number;
|
|
236
|
+
/** Segment creation time. */
|
|
237
|
+
createdAt: Date;
|
|
238
|
+
connection: ExternalSegment_connection;
|
|
239
|
+
};
|
|
240
|
+
export type ListRequest = {
|
|
241
|
+
/** Application code to list external segments for. */
|
|
242
|
+
application?: string;
|
|
243
|
+
};
|
|
244
|
+
export type ListResponse = {
|
|
245
|
+
segments: ExternalSegment[];
|
|
246
|
+
};
|
|
247
|
+
export type GetRequest = {
|
|
248
|
+
/** Owning application code. */
|
|
249
|
+
application?: string;
|
|
250
|
+
/** External segment code. */
|
|
251
|
+
code?: string;
|
|
252
|
+
};
|
|
253
|
+
export type GetResponse = {
|
|
254
|
+
segment: ExternalSegment;
|
|
255
|
+
};
|
|
256
|
+
export type CreateRequest_connection_postgres = {
|
|
257
|
+
type: 'postgres';
|
|
258
|
+
data: PostgresConnection;
|
|
259
|
+
};
|
|
260
|
+
export type CreateRequest_connection_mysql = {
|
|
261
|
+
type: 'mysql';
|
|
262
|
+
data: MysqlConnection;
|
|
263
|
+
};
|
|
264
|
+
export type CreateRequest_connection = CreateRequest_connection_postgres | CreateRequest_connection_mysql;
|
|
265
|
+
export type CreateRequest = {
|
|
266
|
+
/** Application code the segment belongs to. */
|
|
267
|
+
application?: string;
|
|
268
|
+
/** SQL query that must return a single "user_id" column. */
|
|
269
|
+
query?: string;
|
|
270
|
+
connection: CreateRequest_connection;
|
|
271
|
+
};
|
|
272
|
+
export type CreateResponse = {
|
|
273
|
+
segment: ExternalSegment;
|
|
274
|
+
};
|
|
275
|
+
export type UpdateRequest_connection_postgres = {
|
|
276
|
+
type: 'postgres';
|
|
277
|
+
data: PostgresConnection;
|
|
278
|
+
};
|
|
279
|
+
export type UpdateRequest_connection_mysql = {
|
|
280
|
+
type: 'mysql';
|
|
281
|
+
data: MysqlConnection;
|
|
282
|
+
};
|
|
283
|
+
export type UpdateRequest_connection = UpdateRequest_connection_postgres | UpdateRequest_connection_mysql;
|
|
284
|
+
export type UpdateRequest = {
|
|
285
|
+
/** Application code the segment belongs to. */
|
|
286
|
+
application?: string;
|
|
287
|
+
/** External segment code to update. */
|
|
288
|
+
code?: string;
|
|
289
|
+
/** New SQL query. If set, replaces the current value. */
|
|
290
|
+
query?: string;
|
|
291
|
+
connection: UpdateRequest_connection;
|
|
292
|
+
};
|
|
293
|
+
export type UpdateResponse = {
|
|
294
|
+
segment: ExternalSegment;
|
|
295
|
+
};
|
|
296
|
+
export type DeleteRequest = {
|
|
297
|
+
/** Application code the segment belongs to. */
|
|
298
|
+
application?: string;
|
|
299
|
+
/** External segment code to delete. */
|
|
300
|
+
code?: string;
|
|
301
|
+
};
|
|
302
|
+
export type DeleteResponse = {};
|