@scalemule/nextjs 0.1.12 → 0.1.13
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.js +27 -12
- package/dist/index.mjs +27 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2242,14 +2242,25 @@ var StorageService = class extends ServiceModule {
|
|
|
2242
2242
|
},
|
|
2243
2243
|
requestOpts
|
|
2244
2244
|
);
|
|
2245
|
-
|
|
2246
|
-
telemetry?.emit(sessionId, "upload.completed", {
|
|
2247
|
-
file_id,
|
|
2248
|
-
size_bytes: file.size,
|
|
2249
|
-
duration_ms: Date.now() - directStart
|
|
2250
|
-
});
|
|
2245
|
+
return { data: null, error: completeResult.error };
|
|
2251
2246
|
}
|
|
2252
|
-
|
|
2247
|
+
telemetry?.emit(sessionId, "upload.completed", {
|
|
2248
|
+
file_id,
|
|
2249
|
+
size_bytes: file.size,
|
|
2250
|
+
duration_ms: Date.now() - directStart
|
|
2251
|
+
});
|
|
2252
|
+
const d = completeResult.data;
|
|
2253
|
+
return {
|
|
2254
|
+
data: {
|
|
2255
|
+
id: d.file_id,
|
|
2256
|
+
filename: d.filename,
|
|
2257
|
+
content_type: d.content_type,
|
|
2258
|
+
size_bytes: d.size_bytes,
|
|
2259
|
+
url: d.url,
|
|
2260
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2261
|
+
},
|
|
2262
|
+
error: null
|
|
2263
|
+
};
|
|
2253
2264
|
}
|
|
2254
2265
|
// --------------------------------------------------------------------------
|
|
2255
2266
|
// Multipart Upload
|
|
@@ -4458,15 +4469,19 @@ var BillingService = class extends ServiceModule {
|
|
|
4458
4469
|
return this.retiredSurface(`/v1/money/billing/payments/${id}/sync`);
|
|
4459
4470
|
}
|
|
4460
4471
|
// --------------------------------------------------------------------------
|
|
4461
|
-
//
|
|
4472
|
+
// Removed aliases (Phase 6 — billing-v2 retirement)
|
|
4473
|
+
//
|
|
4474
|
+
// These were soft-deprecated wrappers in earlier SDK versions. They now
|
|
4475
|
+
// throw at runtime so any caller still using them gets an immediate signal.
|
|
4476
|
+
// Replacements: createSubscription → subscribe(); getInvoices → listInvoices().
|
|
4462
4477
|
// --------------------------------------------------------------------------
|
|
4463
|
-
/** @
|
|
4478
|
+
/** @removed Use subscribe() instead. */
|
|
4464
4479
|
async createSubscription(data) {
|
|
4465
|
-
|
|
4480
|
+
throw new Error("BillingService.createSubscription was removed in Phase 6. Use subscribe() instead.");
|
|
4466
4481
|
}
|
|
4467
|
-
/** @
|
|
4482
|
+
/** @removed Use listInvoices() instead. */
|
|
4468
4483
|
async getInvoices(params) {
|
|
4469
|
-
|
|
4484
|
+
throw new Error("BillingService.getInvoices was removed in Phase 6. Use listInvoices() instead.");
|
|
4470
4485
|
}
|
|
4471
4486
|
};
|
|
4472
4487
|
var AnalyticsService = class extends ServiceModule {
|
package/dist/index.mjs
CHANGED
|
@@ -2222,14 +2222,25 @@ var StorageService = class extends ServiceModule {
|
|
|
2222
2222
|
},
|
|
2223
2223
|
requestOpts
|
|
2224
2224
|
);
|
|
2225
|
-
|
|
2226
|
-
telemetry?.emit(sessionId, "upload.completed", {
|
|
2227
|
-
file_id,
|
|
2228
|
-
size_bytes: file.size,
|
|
2229
|
-
duration_ms: Date.now() - directStart
|
|
2230
|
-
});
|
|
2225
|
+
return { data: null, error: completeResult.error };
|
|
2231
2226
|
}
|
|
2232
|
-
|
|
2227
|
+
telemetry?.emit(sessionId, "upload.completed", {
|
|
2228
|
+
file_id,
|
|
2229
|
+
size_bytes: file.size,
|
|
2230
|
+
duration_ms: Date.now() - directStart
|
|
2231
|
+
});
|
|
2232
|
+
const d = completeResult.data;
|
|
2233
|
+
return {
|
|
2234
|
+
data: {
|
|
2235
|
+
id: d.file_id,
|
|
2236
|
+
filename: d.filename,
|
|
2237
|
+
content_type: d.content_type,
|
|
2238
|
+
size_bytes: d.size_bytes,
|
|
2239
|
+
url: d.url,
|
|
2240
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2241
|
+
},
|
|
2242
|
+
error: null
|
|
2243
|
+
};
|
|
2233
2244
|
}
|
|
2234
2245
|
// --------------------------------------------------------------------------
|
|
2235
2246
|
// Multipart Upload
|
|
@@ -4438,15 +4449,19 @@ var BillingService = class extends ServiceModule {
|
|
|
4438
4449
|
return this.retiredSurface(`/v1/money/billing/payments/${id}/sync`);
|
|
4439
4450
|
}
|
|
4440
4451
|
// --------------------------------------------------------------------------
|
|
4441
|
-
//
|
|
4452
|
+
// Removed aliases (Phase 6 — billing-v2 retirement)
|
|
4453
|
+
//
|
|
4454
|
+
// These were soft-deprecated wrappers in earlier SDK versions. They now
|
|
4455
|
+
// throw at runtime so any caller still using them gets an immediate signal.
|
|
4456
|
+
// Replacements: createSubscription → subscribe(); getInvoices → listInvoices().
|
|
4442
4457
|
// --------------------------------------------------------------------------
|
|
4443
|
-
/** @
|
|
4458
|
+
/** @removed Use subscribe() instead. */
|
|
4444
4459
|
async createSubscription(data) {
|
|
4445
|
-
|
|
4460
|
+
throw new Error("BillingService.createSubscription was removed in Phase 6. Use subscribe() instead.");
|
|
4446
4461
|
}
|
|
4447
|
-
/** @
|
|
4462
|
+
/** @removed Use listInvoices() instead. */
|
|
4448
4463
|
async getInvoices(params) {
|
|
4449
|
-
|
|
4464
|
+
throw new Error("BillingService.getInvoices was removed in Phase 6. Use listInvoices() instead.");
|
|
4450
4465
|
}
|
|
4451
4466
|
};
|
|
4452
4467
|
var AnalyticsService = class extends ServiceModule {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalemule/nextjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "ScaleMule SDK for Next.js applications - authentication, storage, and user management",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@scalemule/money": "^0.0.1",
|
|
57
|
-
"@scalemule/sdk": "
|
|
57
|
+
"@scalemule/sdk": "^0.0.47"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"next": ">=14.0.0",
|