@talkplay/shared-types 1.0.6 → 1.0.8
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/dist/index.d.mts +20 -6
- package/dist/index.d.ts +20 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -247,10 +247,28 @@ type AddressEntity = {
|
|
|
247
247
|
state: BrStatesEnum;
|
|
248
248
|
};
|
|
249
249
|
|
|
250
|
+
declare enum TkplayErrorNamesEnum {
|
|
251
|
+
EFI_ERROR = "EfiError",// 400
|
|
252
|
+
BILLING_ERROR = "BillingError",// 402
|
|
253
|
+
BAD_REQUEST = "BadRequest",// 400
|
|
254
|
+
UNAUTHORIZED = "Unauthorized",// 401
|
|
255
|
+
FORBIDDEN = "Forbidden",// 403
|
|
256
|
+
NOT_FOUND = "NotFound",// 404
|
|
257
|
+
METHOD_NOT_ALLOWED = "MethodNotAllowed",// 405
|
|
258
|
+
CONFLICT = "Conflict",// 409
|
|
259
|
+
UNPROCESSABLE_ENTITY = "UnprocessableEntity",// 422
|
|
260
|
+
TOO_MANY_REQUESTS = "TooManyRequests",// 429
|
|
261
|
+
INTERNAL_SERVER_ERROR = "InternalServerError",// 500
|
|
262
|
+
NOT_IMPLEMENTED = "NotImplemented",// 501
|
|
263
|
+
BAD_GATEWAY = "BadGateway",// 502
|
|
264
|
+
SERVICE_UNAVAILABLE = "ServiceUnavailable",// 503
|
|
265
|
+
GATEWAY_TIMEOUT = "GatewayTimeout"
|
|
266
|
+
}
|
|
267
|
+
|
|
250
268
|
type TkplayErrorEntity = {
|
|
251
|
-
httpCode: 400 | 401 | 402 | 404 | 500;
|
|
252
269
|
message: string;
|
|
253
|
-
name:
|
|
270
|
+
name: `${TkplayErrorNamesEnum}`;
|
|
271
|
+
httpCode: 400 | 401 | 402 | 403 | 404 | 405 | 409 | 422 | 429 | 500 | 501 | 502 | 503 | 504;
|
|
254
272
|
};
|
|
255
273
|
|
|
256
274
|
type RadioContractEntity = BaseEntity & {
|
|
@@ -574,10 +592,6 @@ type CreateLegalTermPayload = {
|
|
|
574
592
|
type CreateLegalTermAgreementPayload = {
|
|
575
593
|
ipAddress: string;
|
|
576
594
|
userAgent: string;
|
|
577
|
-
terms: {
|
|
578
|
-
platformUseTermId: string;
|
|
579
|
-
cancellationTermId: string;
|
|
580
|
-
};
|
|
581
595
|
};
|
|
582
596
|
type CreateLegalTermResponse = LegalTermEntity;
|
|
583
597
|
|
package/dist/index.d.ts
CHANGED
|
@@ -247,10 +247,28 @@ type AddressEntity = {
|
|
|
247
247
|
state: BrStatesEnum;
|
|
248
248
|
};
|
|
249
249
|
|
|
250
|
+
declare enum TkplayErrorNamesEnum {
|
|
251
|
+
EFI_ERROR = "EfiError",// 400
|
|
252
|
+
BILLING_ERROR = "BillingError",// 402
|
|
253
|
+
BAD_REQUEST = "BadRequest",// 400
|
|
254
|
+
UNAUTHORIZED = "Unauthorized",// 401
|
|
255
|
+
FORBIDDEN = "Forbidden",// 403
|
|
256
|
+
NOT_FOUND = "NotFound",// 404
|
|
257
|
+
METHOD_NOT_ALLOWED = "MethodNotAllowed",// 405
|
|
258
|
+
CONFLICT = "Conflict",// 409
|
|
259
|
+
UNPROCESSABLE_ENTITY = "UnprocessableEntity",// 422
|
|
260
|
+
TOO_MANY_REQUESTS = "TooManyRequests",// 429
|
|
261
|
+
INTERNAL_SERVER_ERROR = "InternalServerError",// 500
|
|
262
|
+
NOT_IMPLEMENTED = "NotImplemented",// 501
|
|
263
|
+
BAD_GATEWAY = "BadGateway",// 502
|
|
264
|
+
SERVICE_UNAVAILABLE = "ServiceUnavailable",// 503
|
|
265
|
+
GATEWAY_TIMEOUT = "GatewayTimeout"
|
|
266
|
+
}
|
|
267
|
+
|
|
250
268
|
type TkplayErrorEntity = {
|
|
251
|
-
httpCode: 400 | 401 | 402 | 404 | 500;
|
|
252
269
|
message: string;
|
|
253
|
-
name:
|
|
270
|
+
name: `${TkplayErrorNamesEnum}`;
|
|
271
|
+
httpCode: 400 | 401 | 402 | 403 | 404 | 405 | 409 | 422 | 429 | 500 | 501 | 502 | 503 | 504;
|
|
254
272
|
};
|
|
255
273
|
|
|
256
274
|
type RadioContractEntity = BaseEntity & {
|
|
@@ -574,10 +592,6 @@ type CreateLegalTermPayload = {
|
|
|
574
592
|
type CreateLegalTermAgreementPayload = {
|
|
575
593
|
ipAddress: string;
|
|
576
594
|
userAgent: string;
|
|
577
|
-
terms: {
|
|
578
|
-
platformUseTermId: string;
|
|
579
|
-
cancellationTermId: string;
|
|
580
|
-
};
|
|
581
595
|
};
|
|
582
596
|
type CreateLegalTermResponse = LegalTermEntity;
|
|
583
597
|
|