@addn/sdk 1.0.0

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.
Files changed (156) hide show
  1. package/dist/auth/storage.d.ts +25 -0
  2. package/dist/auth/storage.d.ts.map +1 -0
  3. package/dist/auth/storage.js +72 -0
  4. package/dist/auth/storage.js.map +1 -0
  5. package/dist/auth/token-manager.d.ts +39 -0
  6. package/dist/auth/token-manager.d.ts.map +1 -0
  7. package/dist/auth/token-manager.js +98 -0
  8. package/dist/auth/token-manager.js.map +1 -0
  9. package/dist/client.d.ts +31 -0
  10. package/dist/client.d.ts.map +1 -0
  11. package/dist/client.js +39 -0
  12. package/dist/client.js.map +1 -0
  13. package/dist/http/errors.d.ts +51 -0
  14. package/dist/http/errors.d.ts.map +1 -0
  15. package/dist/http/errors.js +92 -0
  16. package/dist/http/errors.js.map +1 -0
  17. package/dist/http/http-client.d.ts +18 -0
  18. package/dist/http/http-client.d.ts.map +1 -0
  19. package/dist/http/http-client.js +221 -0
  20. package/dist/http/http-client.js.map +1 -0
  21. package/dist/http/types.d.ts +27 -0
  22. package/dist/http/types.d.ts.map +1 -0
  23. package/dist/http/types.js +3 -0
  24. package/dist/http/types.js.map +1 -0
  25. package/dist/index.d.ts +18 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.js +36 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/modules/accounts.module.d.ts +15 -0
  30. package/dist/modules/accounts.module.d.ts.map +1 -0
  31. package/dist/modules/accounts.module.js +57 -0
  32. package/dist/modules/accounts.module.js.map +1 -0
  33. package/dist/modules/analytics.module.d.ts +14 -0
  34. package/dist/modules/analytics.module.d.ts.map +1 -0
  35. package/dist/modules/analytics.module.js +24 -0
  36. package/dist/modules/analytics.module.js.map +1 -0
  37. package/dist/modules/auth.module.d.ts +18 -0
  38. package/dist/modules/auth.module.d.ts.map +1 -0
  39. package/dist/modules/auth.module.js +113 -0
  40. package/dist/modules/auth.module.js.map +1 -0
  41. package/dist/modules/content-plans.module.d.ts +58 -0
  42. package/dist/modules/content-plans.module.d.ts.map +1 -0
  43. package/dist/modules/content-plans.module.js +125 -0
  44. package/dist/modules/content-plans.module.js.map +1 -0
  45. package/dist/modules/customers.module.d.ts +12 -0
  46. package/dist/modules/customers.module.d.ts.map +1 -0
  47. package/dist/modules/customers.module.js +43 -0
  48. package/dist/modules/customers.module.js.map +1 -0
  49. package/dist/modules/notifications.module.d.ts +20 -0
  50. package/dist/modules/notifications.module.d.ts.map +1 -0
  51. package/dist/modules/notifications.module.js +37 -0
  52. package/dist/modules/notifications.module.js.map +1 -0
  53. package/dist/modules/orgs.module.d.ts +23 -0
  54. package/dist/modules/orgs.module.d.ts.map +1 -0
  55. package/dist/modules/orgs.module.js +112 -0
  56. package/dist/modules/orgs.module.js.map +1 -0
  57. package/dist/modules/projects.module.d.ts +26 -0
  58. package/dist/modules/projects.module.d.ts.map +1 -0
  59. package/dist/modules/projects.module.js +88 -0
  60. package/dist/modules/projects.module.js.map +1 -0
  61. package/dist/modules/scheduling.module.d.ts +13 -0
  62. package/dist/modules/scheduling.module.d.ts.map +1 -0
  63. package/dist/modules/scheduling.module.js +32 -0
  64. package/dist/modules/scheduling.module.js.map +1 -0
  65. package/dist/modules/storage.module.d.ts +36 -0
  66. package/dist/modules/storage.module.d.ts.map +1 -0
  67. package/dist/modules/storage.module.js +100 -0
  68. package/dist/modules/storage.module.js.map +1 -0
  69. package/dist/modules/subscriptions.module.d.ts +25 -0
  70. package/dist/modules/subscriptions.module.d.ts.map +1 -0
  71. package/dist/modules/subscriptions.module.js +62 -0
  72. package/dist/modules/subscriptions.module.js.map +1 -0
  73. package/dist/types/account.types.d.ts +17 -0
  74. package/dist/types/account.types.d.ts.map +1 -0
  75. package/dist/types/account.types.js +3 -0
  76. package/dist/types/account.types.js.map +1 -0
  77. package/dist/types/analytics.types.d.ts +15 -0
  78. package/dist/types/analytics.types.d.ts.map +1 -0
  79. package/dist/types/analytics.types.js +3 -0
  80. package/dist/types/analytics.types.js.map +1 -0
  81. package/dist/types/api.types.d.ts +20 -0
  82. package/dist/types/api.types.d.ts.map +1 -0
  83. package/dist/types/api.types.js +3 -0
  84. package/dist/types/api.types.js.map +1 -0
  85. package/dist/types/auth.types.d.ts +40 -0
  86. package/dist/types/auth.types.d.ts.map +1 -0
  87. package/dist/types/auth.types.js +3 -0
  88. package/dist/types/auth.types.js.map +1 -0
  89. package/dist/types/content-plan.types.d.ts +27 -0
  90. package/dist/types/content-plan.types.d.ts.map +1 -0
  91. package/dist/types/content-plan.types.js +3 -0
  92. package/dist/types/content-plan.types.js.map +1 -0
  93. package/dist/types/customer.types.d.ts +25 -0
  94. package/dist/types/customer.types.d.ts.map +1 -0
  95. package/dist/types/customer.types.js +3 -0
  96. package/dist/types/customer.types.js.map +1 -0
  97. package/dist/types/index.d.ts +585 -0
  98. package/dist/types/index.d.ts.map +1 -0
  99. package/dist/types/index.js +6 -0
  100. package/dist/types/index.js.map +1 -0
  101. package/dist/types/notification.types.d.ts +11 -0
  102. package/dist/types/notification.types.d.ts.map +1 -0
  103. package/dist/types/notification.types.js +3 -0
  104. package/dist/types/notification.types.js.map +1 -0
  105. package/dist/types/org.types.d.ts +25 -0
  106. package/dist/types/org.types.d.ts.map +1 -0
  107. package/dist/types/org.types.js +3 -0
  108. package/dist/types/org.types.js.map +1 -0
  109. package/dist/types/project.types.d.ts +20 -0
  110. package/dist/types/project.types.d.ts.map +1 -0
  111. package/dist/types/project.types.js +3 -0
  112. package/dist/types/project.types.js.map +1 -0
  113. package/dist/types/scheduling.types.d.ts +31 -0
  114. package/dist/types/scheduling.types.d.ts.map +1 -0
  115. package/dist/types/scheduling.types.js +3 -0
  116. package/dist/types/scheduling.types.js.map +1 -0
  117. package/dist/types/storage.types.d.ts +8 -0
  118. package/dist/types/storage.types.d.ts.map +1 -0
  119. package/dist/types/storage.types.js +3 -0
  120. package/dist/types/storage.types.js.map +1 -0
  121. package/dist/types/subscription.types.d.ts +19 -0
  122. package/dist/types/subscription.types.d.ts.map +1 -0
  123. package/dist/types/subscription.types.js +3 -0
  124. package/dist/types/subscription.types.js.map +1 -0
  125. package/package.json +27 -0
  126. package/src/auth/storage.ts +75 -0
  127. package/src/auth/token-manager.ts +107 -0
  128. package/src/client.ts +51 -0
  129. package/src/http/errors.ts +97 -0
  130. package/src/http/http-client.ts +263 -0
  131. package/src/http/types.ts +32 -0
  132. package/src/index.ts +17 -0
  133. package/src/modules/accounts.module.ts +61 -0
  134. package/src/modules/analytics.module.ts +26 -0
  135. package/src/modules/auth.module.ts +129 -0
  136. package/src/modules/content-plans.module.ts +170 -0
  137. package/src/modules/customers.module.ts +48 -0
  138. package/src/modules/notifications.module.ts +41 -0
  139. package/src/modules/orgs.module.ts +122 -0
  140. package/src/modules/projects.module.ts +97 -0
  141. package/src/modules/scheduling.module.ts +35 -0
  142. package/src/modules/storage.module.ts +121 -0
  143. package/src/modules/subscriptions.module.ts +82 -0
  144. package/src/types/account.types.ts +17 -0
  145. package/src/types/analytics.types.ts +15 -0
  146. package/src/types/api.types.ts +21 -0
  147. package/src/types/auth.types.ts +45 -0
  148. package/src/types/content-plan.types.ts +28 -0
  149. package/src/types/customer.types.ts +25 -0
  150. package/src/types/index.ts +682 -0
  151. package/src/types/notification.types.ts +10 -0
  152. package/src/types/org.types.ts +27 -0
  153. package/src/types/project.types.ts +21 -0
  154. package/src/types/scheduling.types.ts +32 -0
  155. package/src/types/storage.types.ts +7 -0
  156. package/src/types/subscription.types.ts +19 -0
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchedulingModule = void 0;
4
+ class SchedulingModule {
5
+ constructor(http) {
6
+ this.http = http;
7
+ }
8
+ async getScheduledPosts(params) {
9
+ return await this.http.request({
10
+ path: "/api/v1/scheduling",
11
+ method: "GET",
12
+ query: params,
13
+ });
14
+ }
15
+ async getPublicApprovalView(token) {
16
+ return await this.http.request({
17
+ path: `/approval/${token}`,
18
+ method: "GET",
19
+ requiresAuth: false,
20
+ });
21
+ }
22
+ async submitPublicApproval(payload) {
23
+ await this.http.request({
24
+ path: `/approval/${payload.token}/action`,
25
+ method: "POST",
26
+ body: payload,
27
+ requiresAuth: false,
28
+ });
29
+ }
30
+ }
31
+ exports.SchedulingModule = SchedulingModule;
32
+ //# sourceMappingURL=scheduling.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduling.module.js","sourceRoot":"","sources":["../../src/modules/scheduling.module.ts"],"names":[],"mappings":";;;AAGA,MAAa,gBAAgB;IAG3B,YAAY,IAAgB;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEM,KAAK,CAAC,iBAAiB,CAAC,MAAgD;QAC7E,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAkB;YAC9C,IAAI,EAAE,oBAAoB;YAC1B,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,MAAM;SACd,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,qBAAqB,CAAC,KAAa;QAC9C,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAqB;YACjD,IAAI,EAAE,aAAa,KAAK,EAAE;YAC1B,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,KAAK;SACpB,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,OAA8B;QAC9D,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACtB,IAAI,EAAE,aAAa,OAAO,CAAC,KAAK,SAAS;YACzC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;YACb,YAAY,EAAE,KAAK;SACpB,CAAC,CAAC;IACL,CAAC;CACF;AA/BD,4CA+BC"}
@@ -0,0 +1,36 @@
1
+ import { HttpClient } from "../http/http-client";
2
+ import type { MediaAsset, PresignedUploadResponse, UploadFileResponse } from "../types";
3
+ export declare class StorageModule {
4
+ private readonly http;
5
+ constructor(http: HttpClient);
6
+ requestPresignedUpload(payload: {
7
+ filename: string;
8
+ content_type: string;
9
+ file_size: number;
10
+ project_id?: string;
11
+ }): Promise<PresignedUploadResponse>;
12
+ uploadBinaryFile(presignedUrl: string, file: File, onProgress?: (percent: number) => void): Promise<void>;
13
+ uploadFile(fileInput: File | Blob | FormData | {
14
+ uri: string;
15
+ name: string;
16
+ type: string;
17
+ }): Promise<UploadFileResponse>;
18
+ listAssets(params?: {
19
+ project_id?: string;
20
+ media_type?: string;
21
+ search?: string;
22
+ page?: number;
23
+ page_size?: number;
24
+ }): Promise<{
25
+ assets: MediaAsset[];
26
+ total: number;
27
+ page: number;
28
+ page_size: number;
29
+ }>;
30
+ getUploadStatus(assetId: string): Promise<{
31
+ status: string;
32
+ url?: string;
33
+ }>;
34
+ deleteAsset(assetId: string): Promise<void>;
35
+ }
36
+ //# sourceMappingURL=storage.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.module.d.ts","sourceRoot":"","sources":["../../src/modules/storage.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAExF,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;gBAEtB,IAAI,EAAE,UAAU;IAIf,sBAAsB,CAAC,OAAO,EAAE;QAC3C,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAsBvB,gBAAgB,CAC3B,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,IAAI,EACV,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GACrC,OAAO,CAAC,IAAI,CAAC;IA+BH,UAAU,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI,GAAG,QAAQ,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAqBxH,UAAU,CAAC,MAAM,CAAC,EAAE;QAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,UAAU,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAQxE,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAO3E,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAMzD"}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StorageModule = void 0;
4
+ class StorageModule {
5
+ constructor(http) {
6
+ this.http = http;
7
+ }
8
+ async requestPresignedUpload(payload) {
9
+ const res = await this.http.request({
10
+ path: "/api/v1/storage/presign-upload",
11
+ method: "POST",
12
+ body: payload,
13
+ });
14
+ const data = res?.data || res;
15
+ const uploadUrl = data?.upload_url || data?.presigned_url || data?.uploadUrl || "";
16
+ const downloadUrl = data?.download_url || data?.url || data?.downloadUrl || "";
17
+ const assetId = data?.asset_id || data?.assetId || "";
18
+ const storagePath = data?.storage_path || data?.storagePath || "";
19
+ return {
20
+ upload_url: uploadUrl,
21
+ presigned_url: uploadUrl,
22
+ asset_id: assetId,
23
+ storage_path: storagePath,
24
+ download_url: downloadUrl,
25
+ url: downloadUrl,
26
+ };
27
+ }
28
+ async uploadBinaryFile(presignedUrl, file, onProgress) {
29
+ if (!presignedUrl || typeof presignedUrl !== "string" || !presignedUrl.startsWith("http")) {
30
+ throw new Error(`Invalid upload URL: "${presignedUrl}". Could not initialize file upload.`);
31
+ }
32
+ return new Promise((resolve, reject) => {
33
+ const xhr = new XMLHttpRequest();
34
+ xhr.open("PUT", presignedUrl, true);
35
+ xhr.setRequestHeader("Content-Type", file.type || "application/octet-stream");
36
+ xhr.upload.onprogress = (event) => {
37
+ if (event.lengthComputable && onProgress && event.total > 0) {
38
+ onProgress(Math.round((event.loaded / event.total) * 100));
39
+ }
40
+ };
41
+ xhr.onload = () => {
42
+ if (xhr.status >= 200 && xhr.status < 300) {
43
+ resolve();
44
+ }
45
+ else {
46
+ try {
47
+ const err = JSON.parse(xhr.responseText);
48
+ reject(new Error(err.message || err.detail || `Upload failed with status ${xhr.status}`));
49
+ }
50
+ catch {
51
+ reject(new Error(`Upload failed with status ${xhr.status}`));
52
+ }
53
+ }
54
+ };
55
+ xhr.onerror = () => reject(new Error("Network error during file upload"));
56
+ xhr.send(file);
57
+ });
58
+ }
59
+ async uploadFile(fileInput) {
60
+ let formData;
61
+ if (fileInput instanceof FormData) {
62
+ formData = fileInput;
63
+ }
64
+ else {
65
+ formData = new FormData();
66
+ if ("uri" in fileInput) {
67
+ formData.append("file", fileInput);
68
+ }
69
+ else {
70
+ formData.append("file", fileInput, fileInput.name || "upload");
71
+ }
72
+ }
73
+ return await this.http.request({
74
+ path: "/api/v1/storage/upload",
75
+ method: "POST",
76
+ formData,
77
+ });
78
+ }
79
+ async listAssets(params) {
80
+ return await this.http.request({
81
+ path: "/api/v1/storage/assets",
82
+ method: "GET",
83
+ query: params,
84
+ });
85
+ }
86
+ async getUploadStatus(assetId) {
87
+ return await this.http.request({
88
+ path: `/api/v1/storage/uploads/${assetId}/status`,
89
+ method: "GET",
90
+ });
91
+ }
92
+ async deleteAsset(assetId) {
93
+ await this.http.request({
94
+ path: `/api/v1/storage/assets/${assetId}`,
95
+ method: "DELETE",
96
+ });
97
+ }
98
+ }
99
+ exports.StorageModule = StorageModule;
100
+ //# sourceMappingURL=storage.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.module.js","sourceRoot":"","sources":["../../src/modules/storage.module.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,25 @@
1
+ import { HttpClient } from "../http/http-client";
2
+ import type { SubscriptionPlan, CurrentSubscription, QuotaStatus, RazorpayCreateResult, RazorpayVerifyResult } from "../types";
3
+ export declare class SubscriptionsModule {
4
+ private readonly http;
5
+ constructor(http: HttpClient);
6
+ getPlans(): Promise<SubscriptionPlan[]>;
7
+ getCurrentSubscription(): Promise<CurrentSubscription>;
8
+ getQuotaStatus(): Promise<QuotaStatus>;
9
+ cancelSubscription(): Promise<any>;
10
+ reactivateSubscription(): Promise<any>;
11
+ createRazorpayOrder(planId: string): Promise<RazorpayCreateResult>;
12
+ verifyRazorpayPayment(payload: {
13
+ razorpay_order_id?: string;
14
+ razorpay_payment_id?: string;
15
+ razorpay_signature?: string;
16
+ plan_id?: string;
17
+ razorpay_subscription_id?: string;
18
+ }): Promise<RazorpayVerifyResult>;
19
+ verifyGooglePlayPurchase(payload: {
20
+ package_name: string;
21
+ product_id: string;
22
+ purchase_token: string;
23
+ }): Promise<any>;
24
+ }
25
+ //# sourceMappingURL=subscriptions.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.module.d.ts","sourceRoot":"","sources":["../../src/modules/subscriptions.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAElB,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;gBAEtB,IAAI,EAAE,UAAU;IAIf,QAAQ,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAQvC,sBAAsB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOtD,cAAc,IAAI,OAAO,CAAC,WAAW,CAAC;IAOtC,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC;IAOlC,sBAAsB,IAAI,OAAO,CAAC,GAAG,CAAC;IAOtC,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAQlE,qBAAqB,CAAC,OAAO,EAAE;QAC1C,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,wBAAwB,CAAC,EAAE,MAAM,CAAC;KACnC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAQpB,wBAAwB,CAAC,OAAO,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,GAAG,CAAC;CAOnI"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionsModule = void 0;
4
+ class SubscriptionsModule {
5
+ constructor(http) {
6
+ this.http = http;
7
+ }
8
+ async getPlans() {
9
+ return await this.http.request({
10
+ path: "/api/v1/subscriptions/plans",
11
+ method: "GET",
12
+ requiresAuth: false,
13
+ });
14
+ }
15
+ async getCurrentSubscription() {
16
+ return await this.http.request({
17
+ path: "/api/v1/subscriptions/current",
18
+ method: "GET",
19
+ });
20
+ }
21
+ async getQuotaStatus() {
22
+ return await this.http.request({
23
+ path: "/api/v1/subscriptions/quota-status",
24
+ method: "GET",
25
+ });
26
+ }
27
+ async cancelSubscription() {
28
+ return await this.http.request({
29
+ path: "/api/v1/subscriptions/cancel",
30
+ method: "POST",
31
+ });
32
+ }
33
+ async reactivateSubscription() {
34
+ return await this.http.request({
35
+ path: "/api/v1/subscriptions/reactivate",
36
+ method: "POST",
37
+ });
38
+ }
39
+ async createRazorpayOrder(planId) {
40
+ return await this.http.request({
41
+ path: "/api/v1/subscriptions/razorpay/create",
42
+ method: "POST",
43
+ body: { plan_id: planId },
44
+ });
45
+ }
46
+ async verifyRazorpayPayment(payload) {
47
+ return await this.http.request({
48
+ path: "/api/v1/subscriptions/razorpay/verify",
49
+ method: "POST",
50
+ body: payload,
51
+ });
52
+ }
53
+ async verifyGooglePlayPurchase(payload) {
54
+ return await this.http.request({
55
+ path: "/api/v1/subscriptions/google-play/verify",
56
+ method: "POST",
57
+ body: payload,
58
+ });
59
+ }
60
+ }
61
+ exports.SubscriptionsModule = SubscriptionsModule;
62
+ //# sourceMappingURL=subscriptions.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.module.js","sourceRoot":"","sources":["../../src/modules/subscriptions.module.ts"],"names":[],"mappings":";;;AASA,MAAa,mBAAmB;IAG9B,YAAY,IAAgB;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEM,KAAK,CAAC,QAAQ;QACnB,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAqB;YACjD,IAAI,EAAE,6BAA6B;YACnC,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,KAAK;SACpB,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,sBAAsB;QACjC,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAsB;YAClD,IAAI,EAAE,+BAA+B;YACrC,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,cAAc;QACzB,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAc;YAC1C,IAAI,EAAE,oCAAoC;YAC1C,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,kBAAkB;QAC7B,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YAC7B,IAAI,EAAE,8BAA8B;YACpC,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,sBAAsB;QACjC,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YAC7B,IAAI,EAAE,kCAAkC;YACxC,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,mBAAmB,CAAC,MAAc;QAC7C,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAuB;YACnD,IAAI,EAAE,uCAAuC;YAC7C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,qBAAqB,CAAC,OAMlC;QACC,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAuB;YACnD,IAAI,EAAE,uCAAuC;YAC7C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,wBAAwB,CAAC,OAA6E;QACjH,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YAC7B,IAAI,EAAE,0CAA0C;YAChD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;IACL,CAAC;CACF;AAxED,kDAwEC"}
@@ -0,0 +1,17 @@
1
+ export interface ConnectedAccount {
2
+ id: string;
3
+ organization_id: string;
4
+ platform: "instagram" | "facebook" | "linkedin";
5
+ account_name: string;
6
+ account_id: string;
7
+ username?: string;
8
+ profile_picture_url?: string;
9
+ is_active: boolean;
10
+ connected_at: string;
11
+ }
12
+ export interface ConnectAccountPayload {
13
+ platform: "instagram" | "facebook" | "linkedin";
14
+ auth_code: string;
15
+ redirect_uri: string;
16
+ }
17
+ //# sourceMappingURL=account.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.types.d.ts","sourceRoot":"","sources":["../../src/types/account.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;IAChD,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=account.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.types.js","sourceRoot":"","sources":["../../src/types/account.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ export interface AnalyticsMetric {
2
+ date: string;
3
+ reach: number;
4
+ impressions: number;
5
+ engagement: number;
6
+ followers_gained: number;
7
+ }
8
+ export interface AnalyticsSummary {
9
+ total_posts: number;
10
+ total_reach: number;
11
+ total_engagement: number;
12
+ average_engagement_rate: number;
13
+ metrics: AnalyticsMetric[];
14
+ }
15
+ //# sourceMappingURL=analytics.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.types.d.ts","sourceRoot":"","sources":["../../src/types/analytics.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,uBAAuB,EAAE,MAAM,CAAC;IAChC,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=analytics.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.types.js","sourceRoot":"","sources":["../../src/types/analytics.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ export interface ApiResponse<T = any> {
2
+ success: boolean;
3
+ message?: string;
4
+ data: T;
5
+ code?: string;
6
+ details?: any;
7
+ }
8
+ export interface PaginatedMeta {
9
+ total: number;
10
+ page: number;
11
+ limit: number;
12
+ pages: number;
13
+ }
14
+ export interface PaginatedResponse<T = any> {
15
+ success: boolean;
16
+ message?: string;
17
+ data: T[];
18
+ meta: PaginatedMeta;
19
+ }
20
+ //# sourceMappingURL=api.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.types.d.ts","sourceRoot":"","sources":["../../src/types/api.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,GAAG;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,GAAG;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,IAAI,EAAE,aAAa,CAAC;CACrB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.types.js","sourceRoot":"","sources":["../../src/types/api.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
1
+ export interface UserProfile {
2
+ id: string;
3
+ email: string;
4
+ full_name: string;
5
+ role: "admin" | "org_admin" | "member" | "viewer" | string;
6
+ organization_id?: string | null;
7
+ avatar_url?: string | null;
8
+ is_active: boolean;
9
+ created_at?: string;
10
+ updated_at?: string;
11
+ }
12
+ export interface LoginPayload {
13
+ email: string;
14
+ password: string;
15
+ }
16
+ export interface RegisterPayload {
17
+ email: string;
18
+ password: string;
19
+ full_name: string;
20
+ organization_name?: string;
21
+ }
22
+ export interface AuthTokenResponse {
23
+ access_token: string;
24
+ refresh_token: string;
25
+ token_type: string;
26
+ expires_in?: number;
27
+ user: UserProfile;
28
+ }
29
+ export interface PasswordResetRequestPayload {
30
+ email: string;
31
+ }
32
+ export interface PasswordResetConfirmPayload {
33
+ token: string;
34
+ new_password: string;
35
+ }
36
+ export interface MetaLoginPayload {
37
+ code: string;
38
+ redirect_uri: string;
39
+ }
40
+ //# sourceMappingURL=auth.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.types.d.ts","sourceRoot":"","sources":["../../src/types/auth.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3D,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=auth.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.types.js","sourceRoot":"","sources":["../../src/types/auth.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ export interface PostItem {
2
+ id: string;
3
+ title: string;
4
+ caption?: string;
5
+ media_urls?: string[];
6
+ post_type: "reel" | "carousel" | "single_image" | "story";
7
+ scheduled_at?: string;
8
+ status: "draft" | "pending_approval" | "approved" | "rejected" | "published";
9
+ rejection_reason?: string;
10
+ }
11
+ export interface ContentPlan {
12
+ id: string;
13
+ project_id: string;
14
+ title: string;
15
+ month: string;
16
+ status: "draft" | "in_review" | "approved" | "published";
17
+ posts: PostItem[];
18
+ created_at: string;
19
+ updated_at: string;
20
+ }
21
+ export interface CreateContentPlanPayload {
22
+ project_id: string;
23
+ title: string;
24
+ month: string;
25
+ posts?: Partial<PostItem>[];
26
+ }
27
+ //# sourceMappingURL=content-plan.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-plan.types.d.ts","sourceRoot":"","sources":["../../src/types/content-plan.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,cAAc,GAAG,OAAO,CAAC;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,OAAO,GAAG,kBAAkB,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;IAC7E,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,GAAG,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;IACzD,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;CAC7B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=content-plan.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-plan.types.js","sourceRoot":"","sources":["../../src/types/content-plan.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ export interface Customer {
2
+ id: string;
3
+ organization_id: string;
4
+ name: string;
5
+ brand_name?: string;
6
+ email?: string;
7
+ phone?: string;
8
+ website?: string;
9
+ logo_url?: string;
10
+ notes?: string;
11
+ created_at: string;
12
+ updated_at: string;
13
+ }
14
+ export interface CreateCustomerPayload {
15
+ name: string;
16
+ brand_name?: string;
17
+ email?: string;
18
+ phone?: string;
19
+ website?: string;
20
+ logo_url?: string;
21
+ notes?: string;
22
+ }
23
+ export interface UpdateCustomerPayload extends Partial<CreateCustomerPayload> {
24
+ }
25
+ //# sourceMappingURL=customer.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.types.d.ts","sourceRoot":"","sources":["../../src/types/customer.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAsB,SAAQ,OAAO,CAAC,qBAAqB,CAAC;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=customer.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.types.js","sourceRoot":"","sources":["../../src/types/customer.types.ts"],"names":[],"mappings":""}