@capibox/bridge-server 0.0.73 → 0.0.74
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 +797 -10
- package/dist/index.d.ts +797 -10
- package/dist/index.js +93 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +93 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5736,7 +5736,9 @@ interface components {
|
|
|
5736
5736
|
customer?: components["schemas"]["CustomerDto"];
|
|
5737
5737
|
paymentMethod?: components["schemas"]["PaymentMethodDto"];
|
|
5738
5738
|
lineItems?: components["schemas"]["LineItemDto"][];
|
|
5739
|
-
metadata?:
|
|
5739
|
+
metadata?: {
|
|
5740
|
+
[key: string]: unknown;
|
|
5741
|
+
};
|
|
5740
5742
|
};
|
|
5741
5743
|
PrimerPaymentCreateReferencePaymentRequestDto: {
|
|
5742
5744
|
/** @example 3000 */
|
|
@@ -5747,7 +5749,9 @@ interface components {
|
|
|
5747
5749
|
orderId: string;
|
|
5748
5750
|
customer?: components["schemas"]["CustomerDto"];
|
|
5749
5751
|
lineItems?: components["schemas"]["LineItemDto"][];
|
|
5750
|
-
metadata?:
|
|
5752
|
+
metadata?: {
|
|
5753
|
+
[key: string]: unknown;
|
|
5754
|
+
};
|
|
5751
5755
|
/** @example pm_token_123 */
|
|
5752
5756
|
paymentMethodToken?: string;
|
|
5753
5757
|
/** @example customer-123 */
|
|
@@ -5766,7 +5770,9 @@ interface components {
|
|
|
5766
5770
|
customerId?: string;
|
|
5767
5771
|
customer?: components["schemas"]["CustomerDto"];
|
|
5768
5772
|
lineItems?: components["schemas"]["LineItemDto"][];
|
|
5769
|
-
metadata?:
|
|
5773
|
+
metadata?: {
|
|
5774
|
+
[key: string]: unknown;
|
|
5775
|
+
};
|
|
5770
5776
|
/** @example pm_token_123 */
|
|
5771
5777
|
paymentMethodToken?: string;
|
|
5772
5778
|
/** @example true */
|
|
@@ -6063,6 +6069,41 @@ interface components {
|
|
|
6063
6069
|
*/
|
|
6064
6070
|
base_currency: string;
|
|
6065
6071
|
};
|
|
6072
|
+
AddActionDto: {
|
|
6073
|
+
/**
|
|
6074
|
+
* @description The URL where the delayed action will be executed
|
|
6075
|
+
* @example https://jsonplaceholder.typicode.com/posts
|
|
6076
|
+
*/
|
|
6077
|
+
url: string;
|
|
6078
|
+
/**
|
|
6079
|
+
* @description The HTTP method to use for the delayed action
|
|
6080
|
+
* @example POST
|
|
6081
|
+
* @enum {string}
|
|
6082
|
+
*/
|
|
6083
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
6084
|
+
/**
|
|
6085
|
+
* @description Optional JSON body to send with the request
|
|
6086
|
+
* @example {
|
|
6087
|
+
* "title": "Test post",
|
|
6088
|
+
* "body": "This is a test",
|
|
6089
|
+
* "userId": 1
|
|
6090
|
+
* }
|
|
6091
|
+
*/
|
|
6092
|
+
body?: Record<string, never>;
|
|
6093
|
+
/**
|
|
6094
|
+
* @description Optional headers for the request as key-value pairs
|
|
6095
|
+
* @example {
|
|
6096
|
+
* "Authorization": "Bearer token_here",
|
|
6097
|
+
* "Content-Type": "application/json"
|
|
6098
|
+
* }
|
|
6099
|
+
*/
|
|
6100
|
+
headers?: Record<string, never>;
|
|
6101
|
+
/**
|
|
6102
|
+
* @description Delay time in minutes before executing the action
|
|
6103
|
+
* @example 5
|
|
6104
|
+
*/
|
|
6105
|
+
delay: number;
|
|
6106
|
+
};
|
|
6066
6107
|
FbCapiCreatePixelDto: {
|
|
6067
6108
|
/** @description Title (just for UI purposes) */
|
|
6068
6109
|
title: string;
|
|
@@ -6715,8 +6756,104 @@ interface components {
|
|
|
6715
6756
|
userId: string;
|
|
6716
6757
|
};
|
|
6717
6758
|
SessionDataResponseDto: {
|
|
6718
|
-
/**
|
|
6719
|
-
|
|
6759
|
+
/**
|
|
6760
|
+
* @description Session ID
|
|
6761
|
+
* @example 1
|
|
6762
|
+
*/
|
|
6763
|
+
id: number;
|
|
6764
|
+
/**
|
|
6765
|
+
* @description Project name
|
|
6766
|
+
* @example netzet
|
|
6767
|
+
*/
|
|
6768
|
+
project: string;
|
|
6769
|
+
/**
|
|
6770
|
+
* @description Session slug
|
|
6771
|
+
* @example some-slug
|
|
6772
|
+
*/
|
|
6773
|
+
slug: string;
|
|
6774
|
+
/**
|
|
6775
|
+
* @description IP address
|
|
6776
|
+
* @example 127.0.0.1
|
|
6777
|
+
*/
|
|
6778
|
+
ip: string;
|
|
6779
|
+
/**
|
|
6780
|
+
* @description Country
|
|
6781
|
+
* @example Lithuania
|
|
6782
|
+
*/
|
|
6783
|
+
country: string;
|
|
6784
|
+
/**
|
|
6785
|
+
* @description Is EU country
|
|
6786
|
+
* @example true
|
|
6787
|
+
*/
|
|
6788
|
+
isEu: boolean;
|
|
6789
|
+
/**
|
|
6790
|
+
* @description Referer URL
|
|
6791
|
+
* @example https://www.google.com
|
|
6792
|
+
*/
|
|
6793
|
+
referer: string;
|
|
6794
|
+
/**
|
|
6795
|
+
* @description User agent
|
|
6796
|
+
* @example Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
|
|
6797
|
+
*/
|
|
6798
|
+
useragent: string;
|
|
6799
|
+
/**
|
|
6800
|
+
* @description Origin URL
|
|
6801
|
+
* @example https://netzet.com
|
|
6802
|
+
*/
|
|
6803
|
+
origin: string;
|
|
6804
|
+
/**
|
|
6805
|
+
* @description Cookies
|
|
6806
|
+
* @example {
|
|
6807
|
+
* "key": "value"
|
|
6808
|
+
* }
|
|
6809
|
+
*/
|
|
6810
|
+
cookies: Record<string, never>;
|
|
6811
|
+
/**
|
|
6812
|
+
* @description Query parameters
|
|
6813
|
+
* @example {
|
|
6814
|
+
* "param": "value"
|
|
6815
|
+
* }
|
|
6816
|
+
*/
|
|
6817
|
+
query: Record<string, never>;
|
|
6818
|
+
/**
|
|
6819
|
+
* Format: date-time
|
|
6820
|
+
* @description Creation timestamp
|
|
6821
|
+
*/
|
|
6822
|
+
createdAt?: string;
|
|
6823
|
+
/**
|
|
6824
|
+
* Format: date-time
|
|
6825
|
+
* @description Update timestamp
|
|
6826
|
+
*/
|
|
6827
|
+
updatedAt?: string;
|
|
6828
|
+
/**
|
|
6829
|
+
* @description Session UUID
|
|
6830
|
+
* @example a1b2c3d4-e5f6-7890-1234-567890abcdef
|
|
6831
|
+
*/
|
|
6832
|
+
uuid: string;
|
|
6833
|
+
/**
|
|
6834
|
+
* @description Extra data
|
|
6835
|
+
* @example {
|
|
6836
|
+
* "custom": "data"
|
|
6837
|
+
* }
|
|
6838
|
+
*/
|
|
6839
|
+
extraData: Record<string, never>;
|
|
6840
|
+
/**
|
|
6841
|
+
* @description Email address
|
|
6842
|
+
* @example user@example.com
|
|
6843
|
+
*/
|
|
6844
|
+
email: string;
|
|
6845
|
+
/**
|
|
6846
|
+
* @description Analytics ID
|
|
6847
|
+
* @example ga-12345
|
|
6848
|
+
*/
|
|
6849
|
+
analyticsId: string;
|
|
6850
|
+
state: string;
|
|
6851
|
+
/**
|
|
6852
|
+
* @description Is purchased
|
|
6853
|
+
* @example false
|
|
6854
|
+
*/
|
|
6855
|
+
isPurchased: boolean;
|
|
6856
|
+
device?: components["schemas"]["SessionDevice"];
|
|
6720
6857
|
};
|
|
6721
6858
|
SessionBadRequestErrorDto: {
|
|
6722
6859
|
/** @example 400 */
|
|
@@ -6815,23 +6952,23 @@ interface components {
|
|
|
6815
6952
|
};
|
|
6816
6953
|
HealthResponseDto: {
|
|
6817
6954
|
/**
|
|
6818
|
-
* @description
|
|
6955
|
+
* @description Service status
|
|
6819
6956
|
* @example UP
|
|
6820
6957
|
*/
|
|
6821
6958
|
service: string;
|
|
6822
6959
|
/**
|
|
6823
|
-
* @description
|
|
6960
|
+
* @description Database status
|
|
6824
6961
|
* @example UP
|
|
6825
6962
|
*/
|
|
6826
6963
|
database: string;
|
|
6827
6964
|
/**
|
|
6828
6965
|
* @description Database latency in milliseconds
|
|
6829
|
-
* @example
|
|
6966
|
+
* @example 2
|
|
6830
6967
|
*/
|
|
6831
6968
|
db_latency_ms: number;
|
|
6832
6969
|
/**
|
|
6833
|
-
* @description Timestamp of
|
|
6834
|
-
* @example 2025-10-
|
|
6970
|
+
* @description Timestamp of health check
|
|
6971
|
+
* @example 2025-10-28T10:46:50.220Z
|
|
6835
6972
|
*/
|
|
6836
6973
|
timestamp: string;
|
|
6837
6974
|
};
|
|
@@ -7409,6 +7546,28 @@ interface components {
|
|
|
7409
7546
|
webhook: components["schemas"]["Webhook"];
|
|
7410
7547
|
};
|
|
7411
7548
|
WebhookDto: Record<string, never>;
|
|
7549
|
+
CreateSessionDto: {
|
|
7550
|
+
extraData?: {
|
|
7551
|
+
[key: string]: unknown;
|
|
7552
|
+
};
|
|
7553
|
+
quiz?: {
|
|
7554
|
+
[key: string]: unknown;
|
|
7555
|
+
};
|
|
7556
|
+
ip: string;
|
|
7557
|
+
cookies: string;
|
|
7558
|
+
uuid?: string;
|
|
7559
|
+
analyticsId?: string;
|
|
7560
|
+
analyticsIdv3?: string;
|
|
7561
|
+
origin?: string;
|
|
7562
|
+
project: string;
|
|
7563
|
+
query: {
|
|
7564
|
+
[key: string]: unknown;
|
|
7565
|
+
};
|
|
7566
|
+
referer?: string;
|
|
7567
|
+
slug: string;
|
|
7568
|
+
"user-agent": string;
|
|
7569
|
+
};
|
|
7570
|
+
SessionDevice: Record<string, never>;
|
|
7412
7571
|
PublicPaymentResponseDto: {
|
|
7413
7572
|
/** @description Source */
|
|
7414
7573
|
source: string;
|
|
@@ -7589,6 +7748,610 @@ interface components {
|
|
|
7589
7748
|
/** @description Pagination metadata */
|
|
7590
7749
|
meta: components["schemas"]["PaymentMetaDto"];
|
|
7591
7750
|
};
|
|
7751
|
+
QueueStatsResponseDto: {
|
|
7752
|
+
/**
|
|
7753
|
+
* @description Queue name
|
|
7754
|
+
* @example applovin_sync_queue
|
|
7755
|
+
*/
|
|
7756
|
+
queue: string;
|
|
7757
|
+
/**
|
|
7758
|
+
* @description Total messages in the queue
|
|
7759
|
+
* @example 0
|
|
7760
|
+
*/
|
|
7761
|
+
messages: number;
|
|
7762
|
+
/**
|
|
7763
|
+
* @description Messages ready for consumers
|
|
7764
|
+
* @example 0
|
|
7765
|
+
*/
|
|
7766
|
+
ready: number;
|
|
7767
|
+
/**
|
|
7768
|
+
* @description Messages not acknowledged yet
|
|
7769
|
+
* @example 0
|
|
7770
|
+
*/
|
|
7771
|
+
unacked: number;
|
|
7772
|
+
/**
|
|
7773
|
+
* @description Number of consumers for this queue
|
|
7774
|
+
* @example 0
|
|
7775
|
+
*/
|
|
7776
|
+
consumers: number;
|
|
7777
|
+
};
|
|
7778
|
+
QueuesResponseDto: {
|
|
7779
|
+
/**
|
|
7780
|
+
* @description Queue name
|
|
7781
|
+
* @example payment_management_queue
|
|
7782
|
+
*/
|
|
7783
|
+
name: string;
|
|
7784
|
+
/**
|
|
7785
|
+
* @description Total messages in the queue
|
|
7786
|
+
* @example 0
|
|
7787
|
+
*/
|
|
7788
|
+
messages: number;
|
|
7789
|
+
/**
|
|
7790
|
+
* @description Messages ready for consumers
|
|
7791
|
+
* @example 0
|
|
7792
|
+
*/
|
|
7793
|
+
ready: number;
|
|
7794
|
+
/**
|
|
7795
|
+
* @description Messages not acknowledged yet
|
|
7796
|
+
* @example 0
|
|
7797
|
+
*/
|
|
7798
|
+
unacked: number;
|
|
7799
|
+
/**
|
|
7800
|
+
* @description Number of consumers for this queue
|
|
7801
|
+
* @example 1
|
|
7802
|
+
*/
|
|
7803
|
+
consumers: number;
|
|
7804
|
+
};
|
|
7805
|
+
CreateSubscriptionDto: {
|
|
7806
|
+
/** Format: date-time */
|
|
7807
|
+
startDate?: string;
|
|
7808
|
+
/** Format: date-time */
|
|
7809
|
+
finishDate?: string;
|
|
7810
|
+
sourceId: string;
|
|
7811
|
+
/**
|
|
7812
|
+
* @description Period: Xd / Xm / Xy
|
|
7813
|
+
* @example 1m
|
|
7814
|
+
*/
|
|
7815
|
+
period: string;
|
|
7816
|
+
/** @example true */
|
|
7817
|
+
active: boolean;
|
|
7818
|
+
/** @example 29.99 */
|
|
7819
|
+
total: number;
|
|
7820
|
+
orderId: string;
|
|
7821
|
+
prefix: string;
|
|
7822
|
+
/** @example false */
|
|
7823
|
+
lifetime: boolean;
|
|
7824
|
+
};
|
|
7825
|
+
NextPaymentDto: {
|
|
7826
|
+
/**
|
|
7827
|
+
* @description Payment due date
|
|
7828
|
+
* @example 2025-09-02
|
|
7829
|
+
*/
|
|
7830
|
+
date: string;
|
|
7831
|
+
/**
|
|
7832
|
+
* @description Payment amount
|
|
7833
|
+
* @example 29.99
|
|
7834
|
+
*/
|
|
7835
|
+
total: number;
|
|
7836
|
+
};
|
|
7837
|
+
CreateSubscriptionWithPaymentsDto: {
|
|
7838
|
+
/** Format: date-time */
|
|
7839
|
+
startDate?: string;
|
|
7840
|
+
/** Format: date-time */
|
|
7841
|
+
finishDate?: string;
|
|
7842
|
+
sourceId?: string;
|
|
7843
|
+
/**
|
|
7844
|
+
* @description Period: Xd / Xm / Xy
|
|
7845
|
+
* @example 1m
|
|
7846
|
+
*/
|
|
7847
|
+
period: string;
|
|
7848
|
+
/** @example true */
|
|
7849
|
+
active?: boolean;
|
|
7850
|
+
/** @example 29.99 */
|
|
7851
|
+
total: number;
|
|
7852
|
+
orderId: string;
|
|
7853
|
+
prefix: string;
|
|
7854
|
+
/** @example false */
|
|
7855
|
+
lifetime?: boolean;
|
|
7856
|
+
/** @description Future payment schedule. If not provided, will be auto-generated based on period. */
|
|
7857
|
+
nextPayments?: components["schemas"]["NextPaymentDto"][];
|
|
7858
|
+
};
|
|
7859
|
+
Subscription: Record<string, never>;
|
|
7860
|
+
UpdateSubscriptionDto: {
|
|
7861
|
+
/** Format: date-time */
|
|
7862
|
+
startDate?: string;
|
|
7863
|
+
/** Format: date-time */
|
|
7864
|
+
finishDate?: string;
|
|
7865
|
+
sourceId?: string;
|
|
7866
|
+
/**
|
|
7867
|
+
* @description Period: Xd / Xm / Xy
|
|
7868
|
+
* @example 1m
|
|
7869
|
+
*/
|
|
7870
|
+
period?: string;
|
|
7871
|
+
/** @example true */
|
|
7872
|
+
active?: boolean;
|
|
7873
|
+
/** @example 29.99 */
|
|
7874
|
+
total?: number;
|
|
7875
|
+
orderId?: string;
|
|
7876
|
+
prefix?: string;
|
|
7877
|
+
/** @example false */
|
|
7878
|
+
lifetime?: boolean;
|
|
7879
|
+
};
|
|
7880
|
+
GetSubscriptionInfoResponseDto: {
|
|
7881
|
+
/**
|
|
7882
|
+
* @description Subscription period type
|
|
7883
|
+
* @example 1m
|
|
7884
|
+
*/
|
|
7885
|
+
period: string;
|
|
7886
|
+
/**
|
|
7887
|
+
* @description Subscription price in USD
|
|
7888
|
+
* @example 9.99
|
|
7889
|
+
*/
|
|
7890
|
+
price: number;
|
|
7891
|
+
/**
|
|
7892
|
+
* @description Current subscription status
|
|
7893
|
+
* @example lifetime | active | inactive
|
|
7894
|
+
* @enum {string}
|
|
7895
|
+
*/
|
|
7896
|
+
status: "lifetime" | "active" | "inactive";
|
|
7897
|
+
/**
|
|
7898
|
+
* @description Start date of subscription
|
|
7899
|
+
* @example 2025-08-01T00:00:00Z
|
|
7900
|
+
*/
|
|
7901
|
+
start: Record<string, never> | null;
|
|
7902
|
+
/**
|
|
7903
|
+
* @description Finish date of subscription
|
|
7904
|
+
* @example 2026-08-01T00:00:00Z
|
|
7905
|
+
*/
|
|
7906
|
+
finish: Record<string, never> | null;
|
|
7907
|
+
/**
|
|
7908
|
+
* @description Type of subscription (allowed values: main, prefix)
|
|
7909
|
+
* @example main | prefix
|
|
7910
|
+
*/
|
|
7911
|
+
type: Record<string, never> | null;
|
|
7912
|
+
};
|
|
7913
|
+
CancelSubscriptionDto: {
|
|
7914
|
+
/** @example Customer requested cancellation */
|
|
7915
|
+
reason: string;
|
|
7916
|
+
};
|
|
7917
|
+
PauseSubscriptionDto: {
|
|
7918
|
+
/** @example 1 */
|
|
7919
|
+
subscriptionId: number;
|
|
7920
|
+
/**
|
|
7921
|
+
* @description Date (YYYY-MM-DD) or timestamp (ms)
|
|
7922
|
+
* @example 1735756800000
|
|
7923
|
+
*/
|
|
7924
|
+
dateFrom: string | number;
|
|
7925
|
+
/**
|
|
7926
|
+
* @description Date (YYYY-MM-DD) or timestamp (ms)
|
|
7927
|
+
* @example 2025-09-15
|
|
7928
|
+
*/
|
|
7929
|
+
dateTo: string | number;
|
|
7930
|
+
description?: string;
|
|
7931
|
+
};
|
|
7932
|
+
SubscriptionPriceResponseDto: {
|
|
7933
|
+
/** @example 1 */
|
|
7934
|
+
id: number;
|
|
7935
|
+
/** @example 1 */
|
|
7936
|
+
subscriptionId: number;
|
|
7937
|
+
/**
|
|
7938
|
+
* @description Price amount (0 for pause, discounted amount for discount)
|
|
7939
|
+
* @example 0
|
|
7940
|
+
*/
|
|
7941
|
+
total: number;
|
|
7942
|
+
/**
|
|
7943
|
+
* @description Start date of price override
|
|
7944
|
+
* @example 2025-09-01
|
|
7945
|
+
*/
|
|
7946
|
+
dateFrom: string;
|
|
7947
|
+
/**
|
|
7948
|
+
* @description End date of price override
|
|
7949
|
+
* @example 2025-09-15
|
|
7950
|
+
*/
|
|
7951
|
+
dateTo: string;
|
|
7952
|
+
/** @example Vacation pause */
|
|
7953
|
+
description?: Record<string, never> | null;
|
|
7954
|
+
};
|
|
7955
|
+
ConflictErrorDto: {
|
|
7956
|
+
/** @example 409 */
|
|
7957
|
+
statusCode: number;
|
|
7958
|
+
message: string[];
|
|
7959
|
+
error: string;
|
|
7960
|
+
};
|
|
7961
|
+
DiscountSubscriptionDto: {
|
|
7962
|
+
/** @example 1 */
|
|
7963
|
+
subscriptionId: number;
|
|
7964
|
+
/**
|
|
7965
|
+
* @description Date (YYYY-MM-DD) or timestamp (ms)
|
|
7966
|
+
* @example 2025-09-01
|
|
7967
|
+
*/
|
|
7968
|
+
dateFrom: string | number;
|
|
7969
|
+
/**
|
|
7970
|
+
* @description Date (YYYY-MM-DD) or timestamp (ms)
|
|
7971
|
+
* @example 2025-09-15
|
|
7972
|
+
*/
|
|
7973
|
+
dateTo: string | number;
|
|
7974
|
+
/**
|
|
7975
|
+
* @description Discount percent (0-100)
|
|
7976
|
+
* @example 25
|
|
7977
|
+
*/
|
|
7978
|
+
discount: number;
|
|
7979
|
+
description?: string;
|
|
7980
|
+
};
|
|
7981
|
+
UpdatePaymentDto: {
|
|
7982
|
+
/**
|
|
7983
|
+
* @description Payment due date
|
|
7984
|
+
* @example 2025-09-02
|
|
7985
|
+
*/
|
|
7986
|
+
date?: string;
|
|
7987
|
+
/**
|
|
7988
|
+
* @description Payment amount
|
|
7989
|
+
* @example 29.99
|
|
7990
|
+
*/
|
|
7991
|
+
total?: number;
|
|
7992
|
+
/**
|
|
7993
|
+
* @description Payment status: waiting, to_pay, paid, error, cancel
|
|
7994
|
+
* @example waiting
|
|
7995
|
+
* @enum {string}
|
|
7996
|
+
*/
|
|
7997
|
+
status?: "waiting" | "to_pay" | "paid" | "error" | "cancel";
|
|
7998
|
+
};
|
|
7999
|
+
SubscriptionPayment: Record<string, never>;
|
|
8000
|
+
CreatePriceOverrideDto: {
|
|
8001
|
+
/**
|
|
8002
|
+
* @description Price amount (0 for free access, any amount for discount)
|
|
8003
|
+
* @example 50
|
|
8004
|
+
*/
|
|
8005
|
+
total: number;
|
|
8006
|
+
/**
|
|
8007
|
+
* @description Start date of price override (optional)
|
|
8008
|
+
* @example 2025-02-01
|
|
8009
|
+
*/
|
|
8010
|
+
dateFrom?: Record<string, never>;
|
|
8011
|
+
/**
|
|
8012
|
+
* @description End date of price override (optional)
|
|
8013
|
+
* @example 2025-02-28
|
|
8014
|
+
*/
|
|
8015
|
+
dateTo?: Record<string, never>;
|
|
8016
|
+
/**
|
|
8017
|
+
* @description Description of the price override
|
|
8018
|
+
* @example February promotional discount
|
|
8019
|
+
*/
|
|
8020
|
+
description?: string;
|
|
8021
|
+
};
|
|
8022
|
+
BulkUpdateCsvResponseDto: {
|
|
8023
|
+
/**
|
|
8024
|
+
* @description Number of subscriptions successfully updated
|
|
8025
|
+
* @example 5
|
|
8026
|
+
*/
|
|
8027
|
+
updated: number;
|
|
8028
|
+
/**
|
|
8029
|
+
* @description Number of subscriptions not found
|
|
8030
|
+
* @example 2
|
|
8031
|
+
*/
|
|
8032
|
+
notFound: string[];
|
|
8033
|
+
/**
|
|
8034
|
+
* @description Number of rows with validation errors
|
|
8035
|
+
* @example 1
|
|
8036
|
+
*/
|
|
8037
|
+
errors: string[];
|
|
8038
|
+
/**
|
|
8039
|
+
* @description Total number of payment records updated
|
|
8040
|
+
* @example 8
|
|
8041
|
+
*/
|
|
8042
|
+
paymentsUpdated: number;
|
|
8043
|
+
};
|
|
8044
|
+
CreateSubscriptionCancelReasonDto: {
|
|
8045
|
+
/**
|
|
8046
|
+
* @description Reason title shown to users/admins
|
|
8047
|
+
* @example Too expensive
|
|
8048
|
+
*/
|
|
8049
|
+
title: string;
|
|
8050
|
+
};
|
|
8051
|
+
SubscriptionCancelReasonDto: {
|
|
8052
|
+
/**
|
|
8053
|
+
* @description Primary key ID
|
|
8054
|
+
* @example 1
|
|
8055
|
+
*/
|
|
8056
|
+
id: number;
|
|
8057
|
+
/**
|
|
8058
|
+
* @description Reason title
|
|
8059
|
+
* @example Too expensive
|
|
8060
|
+
*/
|
|
8061
|
+
title: string;
|
|
8062
|
+
};
|
|
8063
|
+
SubscriptionCancelReasonResponseDto: {
|
|
8064
|
+
/**
|
|
8065
|
+
* @description Additional message or status message
|
|
8066
|
+
* @example Cancel reason retrieved successfully
|
|
8067
|
+
*/
|
|
8068
|
+
message: string;
|
|
8069
|
+
/** @description Subscription cancel reason object */
|
|
8070
|
+
reason: components["schemas"]["SubscriptionCancelReasonDto"];
|
|
8071
|
+
};
|
|
8072
|
+
SubscriptionCancelReasonListResponseDto: {
|
|
8073
|
+
/**
|
|
8074
|
+
* @description Additional message or status message
|
|
8075
|
+
* @example Cancel reason retrieved successfully
|
|
8076
|
+
*/
|
|
8077
|
+
message: string;
|
|
8078
|
+
/**
|
|
8079
|
+
* @description Pagination metadata
|
|
8080
|
+
* @example {
|
|
8081
|
+
* "total": 100,
|
|
8082
|
+
* "pages": 10,
|
|
8083
|
+
* "currentPage": 1
|
|
8084
|
+
* }
|
|
8085
|
+
*/
|
|
8086
|
+
meta: Record<string, never>;
|
|
8087
|
+
/** @description List of subscription cancel reasons */
|
|
8088
|
+
reasons: components["schemas"]["SubscriptionCancelReasonDto"][];
|
|
8089
|
+
};
|
|
8090
|
+
UpdateSubscriptionCancelReasonDto: {
|
|
8091
|
+
/**
|
|
8092
|
+
* @description Reason title shown to users/admins
|
|
8093
|
+
* @example Too expensive
|
|
8094
|
+
*/
|
|
8095
|
+
title?: string;
|
|
8096
|
+
};
|
|
8097
|
+
CreateSubscriptionCancelRequestDto: {
|
|
8098
|
+
/**
|
|
8099
|
+
* @description Related subscription ID; nullable in schema
|
|
8100
|
+
* @example 123
|
|
8101
|
+
*/
|
|
8102
|
+
subscriptionId?: Record<string, never> | null;
|
|
8103
|
+
/**
|
|
8104
|
+
* @description Requester email
|
|
8105
|
+
* @example user@example.com
|
|
8106
|
+
*/
|
|
8107
|
+
email: string;
|
|
8108
|
+
/**
|
|
8109
|
+
* @description Primary topic/category selected by user
|
|
8110
|
+
* @example Pricing
|
|
8111
|
+
*/
|
|
8112
|
+
topic1: string;
|
|
8113
|
+
/**
|
|
8114
|
+
* @description Secondary topic/category selected by user
|
|
8115
|
+
* @example Lack of features
|
|
8116
|
+
*/
|
|
8117
|
+
topic2: string;
|
|
8118
|
+
/**
|
|
8119
|
+
* @description Free-form explanation from the user
|
|
8120
|
+
* @example I am cancelling because the current plan is too costly.
|
|
8121
|
+
*/
|
|
8122
|
+
description: string;
|
|
8123
|
+
/**
|
|
8124
|
+
* @description Requested action (e.g., cancel_now, pause, downgrade)
|
|
8125
|
+
* @example cancel_now
|
|
8126
|
+
*/
|
|
8127
|
+
action: string;
|
|
8128
|
+
/**
|
|
8129
|
+
* @description Internal status code (e.g., 0=pending, 1=processed, etc.)
|
|
8130
|
+
* @example 0
|
|
8131
|
+
*/
|
|
8132
|
+
status: number;
|
|
8133
|
+
};
|
|
8134
|
+
SubscriptionCancelRequestDto: {
|
|
8135
|
+
/**
|
|
8136
|
+
* @description Primary key ID
|
|
8137
|
+
* @example 42
|
|
8138
|
+
*/
|
|
8139
|
+
id: number;
|
|
8140
|
+
/**
|
|
8141
|
+
* @description Related subscription ID; can be null
|
|
8142
|
+
* @example 123
|
|
8143
|
+
*/
|
|
8144
|
+
subscriptionId: Record<string, never> | null;
|
|
8145
|
+
/**
|
|
8146
|
+
* @description Requester email
|
|
8147
|
+
* @example user@example.com
|
|
8148
|
+
*/
|
|
8149
|
+
email: string;
|
|
8150
|
+
/**
|
|
8151
|
+
* @description Primary topic
|
|
8152
|
+
* @example Pricing
|
|
8153
|
+
*/
|
|
8154
|
+
topic1: string;
|
|
8155
|
+
/**
|
|
8156
|
+
* @description Secondary topic
|
|
8157
|
+
* @example Lack of features
|
|
8158
|
+
*/
|
|
8159
|
+
topic2: string;
|
|
8160
|
+
/**
|
|
8161
|
+
* @description Free-form explanation from the user
|
|
8162
|
+
* @example I am cancelling because the current plan is too costly.
|
|
8163
|
+
*/
|
|
8164
|
+
description: string;
|
|
8165
|
+
/**
|
|
8166
|
+
* @description Requested action
|
|
8167
|
+
* @example cancel_now
|
|
8168
|
+
*/
|
|
8169
|
+
action: string;
|
|
8170
|
+
/**
|
|
8171
|
+
* @description Internal status code (0=pending, 1=processed, etc.)
|
|
8172
|
+
* @example 0
|
|
8173
|
+
*/
|
|
8174
|
+
status: number;
|
|
8175
|
+
/**
|
|
8176
|
+
* @description Creation time (nullable). Returned as ISO string.
|
|
8177
|
+
* @example 2025-11-05T12:30:00.000Z
|
|
8178
|
+
*/
|
|
8179
|
+
createdAt: Record<string, never> | null;
|
|
8180
|
+
};
|
|
8181
|
+
SubscriptionCancelRequestResponseDto: {
|
|
8182
|
+
/**
|
|
8183
|
+
* @description Additional message or status message
|
|
8184
|
+
* @example Cancel request retrieved successfully
|
|
8185
|
+
*/
|
|
8186
|
+
message: string;
|
|
8187
|
+
/** @description Subscription cancel request object */
|
|
8188
|
+
request: components["schemas"]["SubscriptionCancelRequestDto"];
|
|
8189
|
+
};
|
|
8190
|
+
SubscriptionCancelRequestListResponseDto: {
|
|
8191
|
+
/**
|
|
8192
|
+
* @description Additional message or status message
|
|
8193
|
+
* @example Cancel request retrieved successfully
|
|
8194
|
+
*/
|
|
8195
|
+
message: string;
|
|
8196
|
+
/**
|
|
8197
|
+
* @description Pagination metadata
|
|
8198
|
+
* @example {
|
|
8199
|
+
* "total": 100,
|
|
8200
|
+
* "pages": 10,
|
|
8201
|
+
* "currentPage": 1
|
|
8202
|
+
* }
|
|
8203
|
+
*/
|
|
8204
|
+
meta: Record<string, never>;
|
|
8205
|
+
/** @description List of subscription cancel requests */
|
|
8206
|
+
requests: components["schemas"]["SubscriptionCancelRequestDto"][];
|
|
8207
|
+
};
|
|
8208
|
+
SubscriptionDto: {
|
|
8209
|
+
/**
|
|
8210
|
+
* @description The ID of the subscription
|
|
8211
|
+
* @example 1
|
|
8212
|
+
*/
|
|
8213
|
+
id: number;
|
|
8214
|
+
/**
|
|
8215
|
+
* @description The start date of the subscription
|
|
8216
|
+
* @example 2025-01-01T00:00:00.000Z
|
|
8217
|
+
*/
|
|
8218
|
+
startDate: Record<string, never> | null;
|
|
8219
|
+
/**
|
|
8220
|
+
* @description The finish date of the subscription
|
|
8221
|
+
* @example 2026-01-01T00:00:00.000Z
|
|
8222
|
+
*/
|
|
8223
|
+
finishDate: Record<string, never> | null;
|
|
8224
|
+
/**
|
|
8225
|
+
* @description The source ID of the subscription
|
|
8226
|
+
* @example SOURCE001
|
|
8227
|
+
*/
|
|
8228
|
+
sourceId: string;
|
|
8229
|
+
/**
|
|
8230
|
+
* @description The period of the subscription (e.g., "1m", "12m", "2y")
|
|
8231
|
+
* @example 1m
|
|
8232
|
+
*/
|
|
8233
|
+
period: string;
|
|
8234
|
+
/**
|
|
8235
|
+
* @description Whether the subscription is active (1 for active, 0 for inactive)
|
|
8236
|
+
* @example 1
|
|
8237
|
+
*/
|
|
8238
|
+
active: boolean;
|
|
8239
|
+
/**
|
|
8240
|
+
* @description The total price of the subscription
|
|
8241
|
+
* @example 49.99
|
|
8242
|
+
*/
|
|
8243
|
+
total: number;
|
|
8244
|
+
/**
|
|
8245
|
+
* @description The order ID associated with the subscription
|
|
8246
|
+
* @example ORD12345
|
|
8247
|
+
*/
|
|
8248
|
+
orderId: string;
|
|
8249
|
+
/**
|
|
8250
|
+
* @description The prefix for the subscription
|
|
8251
|
+
* @example PREX
|
|
8252
|
+
*/
|
|
8253
|
+
prefix: string;
|
|
8254
|
+
/**
|
|
8255
|
+
* @description Whether the subscription is a lifetime subscription (1 for lifetime, 0 for non-lifetime)
|
|
8256
|
+
* @example 0
|
|
8257
|
+
*/
|
|
8258
|
+
lifetime: boolean;
|
|
8259
|
+
};
|
|
8260
|
+
SubscriptionCancelRequestDetailDto: {
|
|
8261
|
+
/**
|
|
8262
|
+
* @description Primary key ID
|
|
8263
|
+
* @example 42
|
|
8264
|
+
*/
|
|
8265
|
+
id: number;
|
|
8266
|
+
/**
|
|
8267
|
+
* @description Related subscription ID; can be null
|
|
8268
|
+
* @example 123
|
|
8269
|
+
*/
|
|
8270
|
+
subscriptionId: Record<string, never> | null;
|
|
8271
|
+
/**
|
|
8272
|
+
* @description Requester email
|
|
8273
|
+
* @example user@example.com
|
|
8274
|
+
*/
|
|
8275
|
+
email: string;
|
|
8276
|
+
/**
|
|
8277
|
+
* @description Primary topic
|
|
8278
|
+
* @example Pricing
|
|
8279
|
+
*/
|
|
8280
|
+
topic1: string;
|
|
8281
|
+
/**
|
|
8282
|
+
* @description Secondary topic
|
|
8283
|
+
* @example Lack of features
|
|
8284
|
+
*/
|
|
8285
|
+
topic2: string;
|
|
8286
|
+
/**
|
|
8287
|
+
* @description Free-form explanation from the user
|
|
8288
|
+
* @example I am cancelling because the current plan is too costly.
|
|
8289
|
+
*/
|
|
8290
|
+
description: string;
|
|
8291
|
+
/**
|
|
8292
|
+
* @description Requested action
|
|
8293
|
+
* @example cancel_now
|
|
8294
|
+
*/
|
|
8295
|
+
action: string;
|
|
8296
|
+
/**
|
|
8297
|
+
* @description Internal status code (0=pending, 1=processed, etc.)
|
|
8298
|
+
* @example 0
|
|
8299
|
+
*/
|
|
8300
|
+
status: number;
|
|
8301
|
+
/**
|
|
8302
|
+
* @description Creation time (nullable). Returned as ISO string.
|
|
8303
|
+
* @example 2025-11-05T12:30:00.000Z
|
|
8304
|
+
*/
|
|
8305
|
+
createdAt: Record<string, never> | null;
|
|
8306
|
+
/** @description List of subscription cancel requests */
|
|
8307
|
+
subscription: components["schemas"]["SubscriptionDto"];
|
|
8308
|
+
};
|
|
8309
|
+
SubscriptionCancelRequestDetailResponseDto: {
|
|
8310
|
+
/**
|
|
8311
|
+
* @description Additional message or status message
|
|
8312
|
+
* @example Cancel request retrieved successfully
|
|
8313
|
+
*/
|
|
8314
|
+
message: string;
|
|
8315
|
+
/** @description Subscription cancel request object */
|
|
8316
|
+
request: components["schemas"]["SubscriptionCancelRequestDetailDto"];
|
|
8317
|
+
};
|
|
8318
|
+
UpdateSubscriptionCancelRequestDto: {
|
|
8319
|
+
/**
|
|
8320
|
+
* @description Related subscription ID; nullable in schema
|
|
8321
|
+
* @example 123
|
|
8322
|
+
*/
|
|
8323
|
+
subscriptionId?: Record<string, never> | null;
|
|
8324
|
+
/**
|
|
8325
|
+
* @description Requester email
|
|
8326
|
+
* @example user@example.com
|
|
8327
|
+
*/
|
|
8328
|
+
email?: string;
|
|
8329
|
+
/**
|
|
8330
|
+
* @description Primary topic/category selected by user
|
|
8331
|
+
* @example Pricing
|
|
8332
|
+
*/
|
|
8333
|
+
topic1?: string;
|
|
8334
|
+
/**
|
|
8335
|
+
* @description Secondary topic/category selected by user
|
|
8336
|
+
* @example Lack of features
|
|
8337
|
+
*/
|
|
8338
|
+
topic2?: string;
|
|
8339
|
+
/**
|
|
8340
|
+
* @description Free-form explanation from the user
|
|
8341
|
+
* @example I am cancelling because the current plan is too costly.
|
|
8342
|
+
*/
|
|
8343
|
+
description?: string;
|
|
8344
|
+
/**
|
|
8345
|
+
* @description Requested action (e.g., cancel_now, pause, downgrade)
|
|
8346
|
+
* @example cancel_now
|
|
8347
|
+
*/
|
|
8348
|
+
action?: string;
|
|
8349
|
+
/**
|
|
8350
|
+
* @description Internal status code (e.g., 0=pending, 1=processed, etc.)
|
|
8351
|
+
* @example 0
|
|
8352
|
+
*/
|
|
8353
|
+
status?: number;
|
|
8354
|
+
};
|
|
7592
8355
|
};
|
|
7593
8356
|
responses: never;
|
|
7594
8357
|
parameters: never;
|
|
@@ -7696,6 +8459,30 @@ declare const server: {
|
|
|
7696
8459
|
type: string;
|
|
7697
8460
|
}[]>;
|
|
7698
8461
|
};
|
|
8462
|
+
subscription: {
|
|
8463
|
+
cancelById: (id: number, data: components["schemas"]["CancelSubscriptionDto"]) => Promise<{}>;
|
|
8464
|
+
cancelByOrderId: (uuid: string, data: components["schemas"]["CancelSubscriptionDto"]) => Promise<{}>;
|
|
8465
|
+
applyDiscount: (data: components["schemas"]["DiscountSubscriptionDto"]) => Promise<{
|
|
8466
|
+
id: number;
|
|
8467
|
+
subscriptionId: number;
|
|
8468
|
+
total: number;
|
|
8469
|
+
dateFrom: string;
|
|
8470
|
+
dateTo: string;
|
|
8471
|
+
description?: Record<string, never> | null;
|
|
8472
|
+
}>;
|
|
8473
|
+
pause: (data: components["schemas"]["PauseSubscriptionDto"]) => Promise<{
|
|
8474
|
+
id: number;
|
|
8475
|
+
subscriptionId: number;
|
|
8476
|
+
total: number;
|
|
8477
|
+
dateFrom: string;
|
|
8478
|
+
dateTo: string;
|
|
8479
|
+
description?: Record<string, never> | null;
|
|
8480
|
+
}>;
|
|
8481
|
+
fillCancellationRequest: (data: components["schemas"]["CreateSubscriptionCancelRequestDto"]) => Promise<{
|
|
8482
|
+
message: string;
|
|
8483
|
+
request: components["schemas"]["SubscriptionCancelRequestDto"];
|
|
8484
|
+
}>;
|
|
8485
|
+
};
|
|
7699
8486
|
};
|
|
7700
8487
|
|
|
7701
8488
|
export { type SdkRemoteFunnel, server };
|