@scalemule/sdk 0.0.45 → 0.0.47
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 +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +29 -12
- package/dist/index.mjs +29 -12
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2880,13 +2880,13 @@ declare class BillingService extends ServiceModule {
|
|
|
2880
2880
|
metadata?: Record<string, unknown>;
|
|
2881
2881
|
}, options?: RequestOptions): Promise<ApiResponse<Transfer>>;
|
|
2882
2882
|
syncPaymentStatus(id: string, options?: RequestOptions): Promise<ApiResponse<PaymentStatusResponse>>;
|
|
2883
|
-
/** @
|
|
2883
|
+
/** @removed Use subscribe() instead. */
|
|
2884
2884
|
createSubscription(data: {
|
|
2885
2885
|
customer_id: string;
|
|
2886
2886
|
plan_id: string;
|
|
2887
|
-
}): Promise<
|
|
2888
|
-
/** @
|
|
2889
|
-
getInvoices(params?: PaginationParams): Promise<
|
|
2887
|
+
}): Promise<never>;
|
|
2888
|
+
/** @removed Use listInvoices() instead. */
|
|
2889
|
+
getInvoices(params?: PaginationParams): Promise<never>;
|
|
2890
2890
|
}
|
|
2891
2891
|
|
|
2892
2892
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2880,13 +2880,13 @@ declare class BillingService extends ServiceModule {
|
|
|
2880
2880
|
metadata?: Record<string, unknown>;
|
|
2881
2881
|
}, options?: RequestOptions): Promise<ApiResponse<Transfer>>;
|
|
2882
2882
|
syncPaymentStatus(id: string, options?: RequestOptions): Promise<ApiResponse<PaymentStatusResponse>>;
|
|
2883
|
-
/** @
|
|
2883
|
+
/** @removed Use subscribe() instead. */
|
|
2884
2884
|
createSubscription(data: {
|
|
2885
2885
|
customer_id: string;
|
|
2886
2886
|
plan_id: string;
|
|
2887
|
-
}): Promise<
|
|
2888
|
-
/** @
|
|
2889
|
-
getInvoices(params?: PaginationParams): Promise<
|
|
2887
|
+
}): Promise<never>;
|
|
2888
|
+
/** @removed Use listInvoices() instead. */
|
|
2889
|
+
getInvoices(params?: PaginationParams): Promise<never>;
|
|
2890
2890
|
}
|
|
2891
2891
|
|
|
2892
2892
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2459,14 +2459,25 @@ var StorageService = class extends ServiceModule {
|
|
|
2459
2459
|
},
|
|
2460
2460
|
requestOpts
|
|
2461
2461
|
);
|
|
2462
|
-
|
|
2463
|
-
telemetry?.emit(sessionId, "upload.completed", {
|
|
2464
|
-
file_id,
|
|
2465
|
-
size_bytes: file.size,
|
|
2466
|
-
duration_ms: Date.now() - directStart
|
|
2467
|
-
});
|
|
2462
|
+
return { data: null, error: completeResult.error };
|
|
2468
2463
|
}
|
|
2469
|
-
|
|
2464
|
+
telemetry?.emit(sessionId, "upload.completed", {
|
|
2465
|
+
file_id,
|
|
2466
|
+
size_bytes: file.size,
|
|
2467
|
+
duration_ms: Date.now() - directStart
|
|
2468
|
+
});
|
|
2469
|
+
const d = completeResult.data;
|
|
2470
|
+
return {
|
|
2471
|
+
data: {
|
|
2472
|
+
id: d.file_id,
|
|
2473
|
+
filename: d.filename,
|
|
2474
|
+
content_type: d.content_type,
|
|
2475
|
+
size_bytes: d.size_bytes,
|
|
2476
|
+
url: d.url,
|
|
2477
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2478
|
+
},
|
|
2479
|
+
error: null
|
|
2480
|
+
};
|
|
2470
2481
|
}
|
|
2471
2482
|
// --------------------------------------------------------------------------
|
|
2472
2483
|
// Multipart Upload
|
|
@@ -5052,15 +5063,21 @@ var BillingService = class extends ServiceModule {
|
|
|
5052
5063
|
return this.retiredSurface(`/v1/money/billing/payments/${id}/sync`);
|
|
5053
5064
|
}
|
|
5054
5065
|
// --------------------------------------------------------------------------
|
|
5055
|
-
//
|
|
5066
|
+
// Removed aliases (Phase 6 — billing-v2 retirement)
|
|
5067
|
+
//
|
|
5068
|
+
// These were soft-deprecated wrappers in earlier SDK versions. They now
|
|
5069
|
+
// throw at runtime so any caller still using them gets an immediate signal.
|
|
5070
|
+
// Replacements: createSubscription → subscribe(); getInvoices → listInvoices().
|
|
5056
5071
|
// --------------------------------------------------------------------------
|
|
5057
|
-
/** @
|
|
5072
|
+
/** @removed Use subscribe() instead. */
|
|
5058
5073
|
async createSubscription(data) {
|
|
5059
|
-
|
|
5074
|
+
void data;
|
|
5075
|
+
throw new Error("BillingService.createSubscription was removed in Phase 6. Use subscribe() instead.");
|
|
5060
5076
|
}
|
|
5061
|
-
/** @
|
|
5077
|
+
/** @removed Use listInvoices() instead. */
|
|
5062
5078
|
async getInvoices(params) {
|
|
5063
|
-
|
|
5079
|
+
void params;
|
|
5080
|
+
throw new Error("BillingService.getInvoices was removed in Phase 6. Use listInvoices() instead.");
|
|
5064
5081
|
}
|
|
5065
5082
|
};
|
|
5066
5083
|
|
package/dist/index.mjs
CHANGED
|
@@ -2089,14 +2089,25 @@ var StorageService = class extends ServiceModule {
|
|
|
2089
2089
|
},
|
|
2090
2090
|
requestOpts
|
|
2091
2091
|
);
|
|
2092
|
-
|
|
2093
|
-
telemetry?.emit(sessionId, "upload.completed", {
|
|
2094
|
-
file_id,
|
|
2095
|
-
size_bytes: file.size,
|
|
2096
|
-
duration_ms: Date.now() - directStart
|
|
2097
|
-
});
|
|
2092
|
+
return { data: null, error: completeResult.error };
|
|
2098
2093
|
}
|
|
2099
|
-
|
|
2094
|
+
telemetry?.emit(sessionId, "upload.completed", {
|
|
2095
|
+
file_id,
|
|
2096
|
+
size_bytes: file.size,
|
|
2097
|
+
duration_ms: Date.now() - directStart
|
|
2098
|
+
});
|
|
2099
|
+
const d = completeResult.data;
|
|
2100
|
+
return {
|
|
2101
|
+
data: {
|
|
2102
|
+
id: d.file_id,
|
|
2103
|
+
filename: d.filename,
|
|
2104
|
+
content_type: d.content_type,
|
|
2105
|
+
size_bytes: d.size_bytes,
|
|
2106
|
+
url: d.url,
|
|
2107
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2108
|
+
},
|
|
2109
|
+
error: null
|
|
2110
|
+
};
|
|
2100
2111
|
}
|
|
2101
2112
|
// --------------------------------------------------------------------------
|
|
2102
2113
|
// Multipart Upload
|
|
@@ -4679,15 +4690,21 @@ var BillingService = class extends ServiceModule {
|
|
|
4679
4690
|
return this.retiredSurface(`/v1/money/billing/payments/${id}/sync`);
|
|
4680
4691
|
}
|
|
4681
4692
|
// --------------------------------------------------------------------------
|
|
4682
|
-
//
|
|
4693
|
+
// Removed aliases (Phase 6 — billing-v2 retirement)
|
|
4694
|
+
//
|
|
4695
|
+
// These were soft-deprecated wrappers in earlier SDK versions. They now
|
|
4696
|
+
// throw at runtime so any caller still using them gets an immediate signal.
|
|
4697
|
+
// Replacements: createSubscription → subscribe(); getInvoices → listInvoices().
|
|
4683
4698
|
// --------------------------------------------------------------------------
|
|
4684
|
-
/** @
|
|
4699
|
+
/** @removed Use subscribe() instead. */
|
|
4685
4700
|
async createSubscription(data) {
|
|
4686
|
-
|
|
4701
|
+
void data;
|
|
4702
|
+
throw new Error("BillingService.createSubscription was removed in Phase 6. Use subscribe() instead.");
|
|
4687
4703
|
}
|
|
4688
|
-
/** @
|
|
4704
|
+
/** @removed Use listInvoices() instead. */
|
|
4689
4705
|
async getInvoices(params) {
|
|
4690
|
-
|
|
4706
|
+
void params;
|
|
4707
|
+
throw new Error("BillingService.getInvoices was removed in Phase 6. Use listInvoices() instead.");
|
|
4691
4708
|
}
|
|
4692
4709
|
};
|
|
4693
4710
|
|