@topolo/sdk 0.2.3 → 0.2.4
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.cjs +15 -12
- package/dist/index.d.cts +58 -58
- package/dist/index.d.ts +58 -58
- package/dist/index.js +15 -11
- package/package.json +1 -1
- package/src/application-requirements.ts +4 -2
- package/src/applications.generated.ts +1 -1
- package/src/services.generated.ts +1 -1
- package/src/services.test.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -117,7 +116,7 @@ var SERVICES = {
|
|
|
117
116
|
mdm: "https://topolo-mdm-api.topolo.app",
|
|
118
117
|
messaging: "https://messages.topolo.app",
|
|
119
118
|
nexus: "https://topolo-nexus-gateway.topolo.workers.dev",
|
|
120
|
-
one: "https://
|
|
119
|
+
one: "https://one.topolo.app",
|
|
121
120
|
pay: "https://topolo-pay.topolo.workers.dev",
|
|
122
121
|
"quro.api": "https://api.ol0.me",
|
|
123
122
|
"quro.redirect": "https://ol0.me",
|
|
@@ -716,7 +715,7 @@ var APPLICATIONS = {
|
|
|
716
715
|
{
|
|
717
716
|
"name": "topoloone-worker",
|
|
718
717
|
"kind": "worker",
|
|
719
|
-
"apiUrl": "https://
|
|
718
|
+
"apiUrl": "https://one.topolo.app",
|
|
720
719
|
"domains": [],
|
|
721
720
|
"routes": [
|
|
722
721
|
"one.topolo.app/*"
|
|
@@ -1124,8 +1123,9 @@ var APPLICATION_REQUIREMENTS = [
|
|
|
1124
1123
|
];
|
|
1125
1124
|
function applicationRequirementScopes(application) {
|
|
1126
1125
|
const scopes = /* @__PURE__ */ new Set(["all"]);
|
|
1127
|
-
const
|
|
1128
|
-
const
|
|
1126
|
+
const deployTargets = application.deployTargets;
|
|
1127
|
+
const hasBrowserSurface = Boolean(application.productionUrl) || deployTargets.some((target) => target.kind === "pages");
|
|
1128
|
+
const hasApiSurface = application.services.length > 0 || deployTargets.some((target) => Boolean(target.apiUrl));
|
|
1129
1129
|
if (hasBrowserSurface) scopes.add("browser");
|
|
1130
1130
|
if (hasApiSurface) scopes.add("api");
|
|
1131
1131
|
if (application.id === "cli" || application.id === "mcp" || application.id === "cloudcontrol") {
|
|
@@ -1313,10 +1313,11 @@ function statusRank(status) {
|
|
|
1313
1313
|
// src/services.ts
|
|
1314
1314
|
var DEFAULT_SERVICE_URLS = SERVICES;
|
|
1315
1315
|
function resolveServiceUrl(service, overrides) {
|
|
1316
|
-
|
|
1316
|
+
var _a;
|
|
1317
|
+
const override = overrides == null ? void 0 : overrides[service];
|
|
1317
1318
|
if (override) return override;
|
|
1318
1319
|
const envKey = `TOPOLO_SERVICE_URL_${service.replace(/\./g, "_").toUpperCase()}`;
|
|
1319
|
-
const envValue = typeof process !== "undefined" ? process.env
|
|
1320
|
+
const envValue = typeof process !== "undefined" ? (_a = process.env) == null ? void 0 : _a[envKey] : void 0;
|
|
1320
1321
|
if (envValue) return envValue;
|
|
1321
1322
|
return DEFAULT_SERVICE_URLS[service];
|
|
1322
1323
|
}
|
|
@@ -1332,8 +1333,9 @@ var TopoloClient = class {
|
|
|
1332
1333
|
fetchImpl;
|
|
1333
1334
|
debug;
|
|
1334
1335
|
constructor(options) {
|
|
1336
|
+
var _a;
|
|
1335
1337
|
if (!options.credential) throw new TopoloAuthError("credential is required");
|
|
1336
|
-
if (!options.agent
|
|
1338
|
+
if (!((_a = options.agent) == null ? void 0 : _a.clientName)) throw new TopoloAuthError("agent.clientName is required");
|
|
1337
1339
|
this.credential = options.credential;
|
|
1338
1340
|
this.agent = options.agent;
|
|
1339
1341
|
this.serviceUrls = options.serviceUrls;
|
|
@@ -1523,6 +1525,7 @@ var CrmModule = class {
|
|
|
1523
1525
|
}
|
|
1524
1526
|
client;
|
|
1525
1527
|
async listContacts(options = {}) {
|
|
1528
|
+
var _a, _b, _c;
|
|
1526
1529
|
const res = await this.client.request({
|
|
1527
1530
|
service: "crm",
|
|
1528
1531
|
path: "/api/contacts",
|
|
@@ -1532,12 +1535,12 @@ var CrmModule = class {
|
|
|
1532
1535
|
pageSize: options.pageSize
|
|
1533
1536
|
}
|
|
1534
1537
|
});
|
|
1535
|
-
const rows = Array.isArray(res
|
|
1538
|
+
const rows = Array.isArray(res == null ? void 0 : res.contacts) ? res.contacts : Array.isArray(res == null ? void 0 : res.data) ? res.data : [];
|
|
1536
1539
|
return {
|
|
1537
1540
|
contacts: rows.map(toSummary),
|
|
1538
|
-
total: res
|
|
1539
|
-
page: res
|
|
1540
|
-
pageSize: res
|
|
1541
|
+
total: (res == null ? void 0 : res.total) ?? ((_a = res == null ? void 0 : res.pagination) == null ? void 0 : _a.total) ?? rows.length,
|
|
1542
|
+
page: (res == null ? void 0 : res.page) ?? ((_b = res == null ? void 0 : res.pagination) == null ? void 0 : _b.page) ?? options.page ?? 1,
|
|
1543
|
+
pageSize: (res == null ? void 0 : res.pageSize) ?? ((_c = res == null ? void 0 : res.pagination) == null ? void 0 : _c.pageSize) ?? options.pageSize ?? rows.length
|
|
1541
1544
|
};
|
|
1542
1545
|
}
|
|
1543
1546
|
async getContact(contactId) {
|
package/dist/index.d.cts
CHANGED
|
@@ -47,7 +47,7 @@ declare const SERVICES: {
|
|
|
47
47
|
readonly mdm: "https://topolo-mdm-api.topolo.app";
|
|
48
48
|
readonly messaging: "https://messages.topolo.app";
|
|
49
49
|
readonly nexus: "https://topolo-nexus-gateway.topolo.workers.dev";
|
|
50
|
-
readonly one: "https://
|
|
50
|
+
readonly one: "https://one.topolo.app";
|
|
51
51
|
readonly pay: "https://topolo-pay.topolo.workers.dev";
|
|
52
52
|
readonly "quro.api": "https://api.ol0.me";
|
|
53
53
|
readonly "quro.redirect": "https://ol0.me";
|
|
@@ -71,10 +71,10 @@ declare const APPLICATIONS: {
|
|
|
71
71
|
readonly deployTargets: readonly [{
|
|
72
72
|
readonly name: "topoloadmin";
|
|
73
73
|
readonly kind: "pages";
|
|
74
|
-
readonly apiUrl:
|
|
74
|
+
readonly apiUrl: any;
|
|
75
75
|
readonly domains: readonly [];
|
|
76
76
|
readonly routes: readonly [];
|
|
77
|
-
readonly serviceId:
|
|
77
|
+
readonly serviceId: any;
|
|
78
78
|
}];
|
|
79
79
|
};
|
|
80
80
|
readonly agent: {
|
|
@@ -87,10 +87,10 @@ declare const APPLICATIONS: {
|
|
|
87
87
|
readonly deployTargets: readonly [{
|
|
88
88
|
readonly name: "topolo-agent";
|
|
89
89
|
readonly kind: "pages";
|
|
90
|
-
readonly apiUrl:
|
|
90
|
+
readonly apiUrl: any;
|
|
91
91
|
readonly domains: readonly [];
|
|
92
92
|
readonly routes: readonly [];
|
|
93
|
-
readonly serviceId:
|
|
93
|
+
readonly serviceId: any;
|
|
94
94
|
}, {
|
|
95
95
|
readonly name: "topolo-agent-worker";
|
|
96
96
|
readonly kind: "worker";
|
|
@@ -142,10 +142,10 @@ declare const APPLICATIONS: {
|
|
|
142
142
|
readonly deployTargets: readonly [{
|
|
143
143
|
readonly name: "bytes";
|
|
144
144
|
readonly kind: "pages";
|
|
145
|
-
readonly apiUrl:
|
|
145
|
+
readonly apiUrl: any;
|
|
146
146
|
readonly domains: readonly [];
|
|
147
147
|
readonly routes: readonly [];
|
|
148
|
-
readonly serviceId:
|
|
148
|
+
readonly serviceId: any;
|
|
149
149
|
}, {
|
|
150
150
|
readonly name: "r2-media-manager-worker";
|
|
151
151
|
readonly kind: "worker";
|
|
@@ -192,7 +192,7 @@ declare const APPLICATIONS: {
|
|
|
192
192
|
readonly appDir: "TopoloCli";
|
|
193
193
|
readonly name: "@topolo/cli";
|
|
194
194
|
readonly packageName: "@topolo/cli";
|
|
195
|
-
readonly productionUrl:
|
|
195
|
+
readonly productionUrl: any;
|
|
196
196
|
readonly services: readonly [];
|
|
197
197
|
readonly deployTargets: readonly [];
|
|
198
198
|
};
|
|
@@ -201,7 +201,7 @@ declare const APPLICATIONS: {
|
|
|
201
201
|
readonly appDir: "TopoloCloudControl";
|
|
202
202
|
readonly name: "topolo-cloudcontrol";
|
|
203
203
|
readonly packageName: "topolo-cloudcontrol";
|
|
204
|
-
readonly productionUrl:
|
|
204
|
+
readonly productionUrl: any;
|
|
205
205
|
readonly services: readonly [];
|
|
206
206
|
readonly deployTargets: readonly [];
|
|
207
207
|
};
|
|
@@ -222,24 +222,24 @@ declare const APPLICATIONS: {
|
|
|
222
222
|
}, {
|
|
223
223
|
readonly name: "topolo-commerce-guest-web";
|
|
224
224
|
readonly kind: "pages";
|
|
225
|
-
readonly apiUrl:
|
|
225
|
+
readonly apiUrl: any;
|
|
226
226
|
readonly domains: readonly ["guest.topolo.app", "topolo-commerce-guest-web.pages.dev"];
|
|
227
227
|
readonly routes: readonly [];
|
|
228
|
-
readonly serviceId:
|
|
228
|
+
readonly serviceId: any;
|
|
229
229
|
}, {
|
|
230
230
|
readonly name: "topolo-commerce-ops-web";
|
|
231
231
|
readonly kind: "pages";
|
|
232
|
-
readonly apiUrl:
|
|
232
|
+
readonly apiUrl: any;
|
|
233
233
|
readonly domains: readonly ["commerce.topolo.app", "topolo-commerce-ops-web.pages.dev"];
|
|
234
234
|
readonly routes: readonly [];
|
|
235
|
-
readonly serviceId:
|
|
235
|
+
readonly serviceId: any;
|
|
236
236
|
}, {
|
|
237
237
|
readonly name: "topolo-commerce-station-web";
|
|
238
238
|
readonly kind: "pages";
|
|
239
|
-
readonly apiUrl:
|
|
239
|
+
readonly apiUrl: any;
|
|
240
240
|
readonly domains: readonly ["station-commerce.topolo.app", "topolo-commerce-station-web.pages.dev"];
|
|
241
241
|
readonly routes: readonly [];
|
|
242
|
-
readonly serviceId:
|
|
242
|
+
readonly serviceId: any;
|
|
243
243
|
}];
|
|
244
244
|
};
|
|
245
245
|
readonly crm: {
|
|
@@ -252,10 +252,10 @@ declare const APPLICATIONS: {
|
|
|
252
252
|
readonly deployTargets: readonly [{
|
|
253
253
|
readonly name: "topolo-crm-frontend";
|
|
254
254
|
readonly kind: "pages";
|
|
255
|
-
readonly apiUrl:
|
|
255
|
+
readonly apiUrl: any;
|
|
256
256
|
readonly domains: readonly [];
|
|
257
257
|
readonly routes: readonly [];
|
|
258
|
-
readonly serviceId:
|
|
258
|
+
readonly serviceId: any;
|
|
259
259
|
}, {
|
|
260
260
|
readonly name: "topolo-crm-worker";
|
|
261
261
|
readonly kind: "worker";
|
|
@@ -275,10 +275,10 @@ declare const APPLICATIONS: {
|
|
|
275
275
|
readonly deployTargets: readonly [{
|
|
276
276
|
readonly name: "topolo-developers";
|
|
277
277
|
readonly kind: "pages";
|
|
278
|
-
readonly apiUrl:
|
|
278
|
+
readonly apiUrl: any;
|
|
279
279
|
readonly domains: readonly ["developers.topolo.app"];
|
|
280
280
|
readonly routes: readonly [];
|
|
281
|
-
readonly serviceId:
|
|
281
|
+
readonly serviceId: any;
|
|
282
282
|
}];
|
|
283
283
|
};
|
|
284
284
|
readonly docs: {
|
|
@@ -291,17 +291,17 @@ declare const APPLICATIONS: {
|
|
|
291
291
|
readonly deployTargets: readonly [{
|
|
292
292
|
readonly name: "topolo-docs";
|
|
293
293
|
readonly kind: "pages";
|
|
294
|
-
readonly apiUrl:
|
|
294
|
+
readonly apiUrl: any;
|
|
295
295
|
readonly domains: readonly ["docs.topolo.app"];
|
|
296
296
|
readonly routes: readonly [];
|
|
297
|
-
readonly serviceId:
|
|
297
|
+
readonly serviceId: any;
|
|
298
298
|
}];
|
|
299
299
|
};
|
|
300
300
|
readonly feed: {
|
|
301
301
|
readonly id: "feed";
|
|
302
302
|
readonly appDir: "TopoloFeed";
|
|
303
303
|
readonly name: "TopoloFeed";
|
|
304
|
-
readonly packageName:
|
|
304
|
+
readonly packageName: any;
|
|
305
305
|
readonly productionUrl: "https://topolo-feed-api.topolo.app";
|
|
306
306
|
readonly services: readonly ["feed"];
|
|
307
307
|
readonly deployTargets: readonly [{
|
|
@@ -310,7 +310,7 @@ declare const APPLICATIONS: {
|
|
|
310
310
|
readonly apiUrl: "https://topolo-feed-analytics-api.topolo.app";
|
|
311
311
|
readonly domains: readonly ["topolo-feed-analytics-api.topolo.app"];
|
|
312
312
|
readonly routes: readonly ["topolo-feed-analytics-api.topolo.app"];
|
|
313
|
-
readonly serviceId:
|
|
313
|
+
readonly serviceId: any;
|
|
314
314
|
}, {
|
|
315
315
|
readonly name: "topolo-feed-api";
|
|
316
316
|
readonly kind: "worker";
|
|
@@ -330,10 +330,10 @@ declare const APPLICATIONS: {
|
|
|
330
330
|
readonly deployTargets: readonly [{
|
|
331
331
|
readonly name: "forecast";
|
|
332
332
|
readonly kind: "pages";
|
|
333
|
-
readonly apiUrl:
|
|
333
|
+
readonly apiUrl: any;
|
|
334
334
|
readonly domains: readonly [];
|
|
335
335
|
readonly routes: readonly [];
|
|
336
|
-
readonly serviceId:
|
|
336
|
+
readonly serviceId: any;
|
|
337
337
|
}, {
|
|
338
338
|
readonly name: "forecast-worker-production";
|
|
339
339
|
readonly kind: "worker";
|
|
@@ -353,10 +353,10 @@ declare const APPLICATIONS: {
|
|
|
353
353
|
readonly deployTargets: readonly [{
|
|
354
354
|
readonly name: "topololearn";
|
|
355
355
|
readonly kind: "pages";
|
|
356
|
-
readonly apiUrl:
|
|
356
|
+
readonly apiUrl: any;
|
|
357
357
|
readonly domains: readonly ["learn.topolo.app"];
|
|
358
358
|
readonly routes: readonly [];
|
|
359
|
-
readonly serviceId:
|
|
359
|
+
readonly serviceId: any;
|
|
360
360
|
}, {
|
|
361
361
|
readonly name: "topololearn-api";
|
|
362
362
|
readonly kind: "worker";
|
|
@@ -387,7 +387,7 @@ declare const APPLICATIONS: {
|
|
|
387
387
|
readonly appDir: "TopoloMCP";
|
|
388
388
|
readonly name: "@topolo/mcp";
|
|
389
389
|
readonly packageName: "@topolo/mcp";
|
|
390
|
-
readonly productionUrl:
|
|
390
|
+
readonly productionUrl: any;
|
|
391
391
|
readonly services: readonly [];
|
|
392
392
|
readonly deployTargets: readonly [];
|
|
393
393
|
};
|
|
@@ -395,7 +395,7 @@ declare const APPLICATIONS: {
|
|
|
395
395
|
readonly id: "mdm";
|
|
396
396
|
readonly appDir: "TopoloMDM";
|
|
397
397
|
readonly name: "TopoloMDM";
|
|
398
|
-
readonly packageName:
|
|
398
|
+
readonly packageName: any;
|
|
399
399
|
readonly productionUrl: "https://mdm.topolo.app";
|
|
400
400
|
readonly services: readonly ["mdm"];
|
|
401
401
|
readonly deployTargets: readonly [{
|
|
@@ -408,10 +408,10 @@ declare const APPLICATIONS: {
|
|
|
408
408
|
}, {
|
|
409
409
|
readonly name: "topolo-mdm-console";
|
|
410
410
|
readonly kind: "pages";
|
|
411
|
-
readonly apiUrl:
|
|
411
|
+
readonly apiUrl: any;
|
|
412
412
|
readonly domains: readonly ["mdm.topolo.app", "topolo-mdm-console.pages.dev"];
|
|
413
413
|
readonly routes: readonly ["mdm.topolo.app"];
|
|
414
|
-
readonly serviceId:
|
|
414
|
+
readonly serviceId: any;
|
|
415
415
|
}];
|
|
416
416
|
};
|
|
417
417
|
readonly messaging: {
|
|
@@ -431,10 +431,10 @@ declare const APPLICATIONS: {
|
|
|
431
431
|
}, {
|
|
432
432
|
readonly name: "topolo-messaging-dispatch";
|
|
433
433
|
readonly kind: "workers";
|
|
434
|
-
readonly apiUrl:
|
|
434
|
+
readonly apiUrl: any;
|
|
435
435
|
readonly domains: readonly [];
|
|
436
436
|
readonly routes: readonly [];
|
|
437
|
-
readonly serviceId:
|
|
437
|
+
readonly serviceId: any;
|
|
438
438
|
}];
|
|
439
439
|
};
|
|
440
440
|
readonly nexus: {
|
|
@@ -447,10 +447,10 @@ declare const APPLICATIONS: {
|
|
|
447
447
|
readonly deployTargets: readonly [{
|
|
448
448
|
readonly name: "topolo-nexus-dashboard";
|
|
449
449
|
readonly kind: "pages";
|
|
450
|
-
readonly apiUrl:
|
|
450
|
+
readonly apiUrl: any;
|
|
451
451
|
readonly domains: readonly ["nexus.topolo.app", "topolo-nexus-dashboard.pages.dev"];
|
|
452
452
|
readonly routes: readonly [];
|
|
453
|
-
readonly serviceId:
|
|
453
|
+
readonly serviceId: any;
|
|
454
454
|
}, {
|
|
455
455
|
readonly name: "topolo-nexus-gateway";
|
|
456
456
|
readonly kind: "worker";
|
|
@@ -470,28 +470,28 @@ declare const APPLICATIONS: {
|
|
|
470
470
|
readonly deployTargets: readonly [{
|
|
471
471
|
readonly name: "ai-chat-rag";
|
|
472
472
|
readonly kind: "worker";
|
|
473
|
-
readonly apiUrl:
|
|
473
|
+
readonly apiUrl: any;
|
|
474
474
|
readonly domains: readonly ["ai-chat-rag.topolo.workers.dev"];
|
|
475
475
|
readonly routes: readonly [];
|
|
476
|
-
readonly serviceId:
|
|
476
|
+
readonly serviceId: any;
|
|
477
477
|
}, {
|
|
478
478
|
readonly name: "topoloone";
|
|
479
479
|
readonly kind: "pages";
|
|
480
|
-
readonly apiUrl:
|
|
480
|
+
readonly apiUrl: any;
|
|
481
481
|
readonly domains: readonly ["oneclick-dashboard.pages.dev"];
|
|
482
482
|
readonly routes: readonly [];
|
|
483
|
-
readonly serviceId:
|
|
483
|
+
readonly serviceId: any;
|
|
484
484
|
}, {
|
|
485
485
|
readonly name: "topoloone-website";
|
|
486
486
|
readonly kind: "worker";
|
|
487
|
-
readonly apiUrl:
|
|
487
|
+
readonly apiUrl: any;
|
|
488
488
|
readonly domains: readonly ["one.topolo.io"];
|
|
489
489
|
readonly routes: readonly [];
|
|
490
|
-
readonly serviceId:
|
|
490
|
+
readonly serviceId: any;
|
|
491
491
|
}, {
|
|
492
492
|
readonly name: "topoloone-worker";
|
|
493
493
|
readonly kind: "worker";
|
|
494
|
-
readonly apiUrl: "https://
|
|
494
|
+
readonly apiUrl: "https://one.topolo.app";
|
|
495
495
|
readonly domains: readonly [];
|
|
496
496
|
readonly routes: readonly ["one.topolo.app/*"];
|
|
497
497
|
readonly serviceId: "one";
|
|
@@ -517,7 +517,7 @@ declare const APPLICATIONS: {
|
|
|
517
517
|
readonly id: "quro";
|
|
518
518
|
readonly appDir: "TopoloQuro";
|
|
519
519
|
readonly name: "TopoloQuro";
|
|
520
|
-
readonly packageName:
|
|
520
|
+
readonly packageName: any;
|
|
521
521
|
readonly productionUrl: "https://quro.topolo.app";
|
|
522
522
|
readonly services: readonly ["quro.api", "quro.redirect"];
|
|
523
523
|
readonly deployTargets: readonly [{
|
|
@@ -537,10 +537,10 @@ declare const APPLICATIONS: {
|
|
|
537
537
|
}, {
|
|
538
538
|
readonly name: "quro-ui";
|
|
539
539
|
readonly kind: "pages";
|
|
540
|
-
readonly apiUrl:
|
|
540
|
+
readonly apiUrl: any;
|
|
541
541
|
readonly domains: readonly [];
|
|
542
542
|
readonly routes: readonly [];
|
|
543
|
-
readonly serviceId:
|
|
543
|
+
readonly serviceId: any;
|
|
544
544
|
}];
|
|
545
545
|
};
|
|
546
546
|
readonly roadmapper: {
|
|
@@ -553,10 +553,10 @@ declare const APPLICATIONS: {
|
|
|
553
553
|
readonly deployTargets: readonly [{
|
|
554
554
|
readonly name: "roadmapper";
|
|
555
555
|
readonly kind: "pages";
|
|
556
|
-
readonly apiUrl:
|
|
556
|
+
readonly apiUrl: any;
|
|
557
557
|
readonly domains: readonly ["roadmapper.topolo.app"];
|
|
558
558
|
readonly routes: readonly [];
|
|
559
|
-
readonly serviceId:
|
|
559
|
+
readonly serviceId: any;
|
|
560
560
|
}, {
|
|
561
561
|
readonly name: "topolo-production-roadmapper";
|
|
562
562
|
readonly kind: "worker";
|
|
@@ -576,10 +576,10 @@ declare const APPLICATIONS: {
|
|
|
576
576
|
readonly deployTargets: readonly [{
|
|
577
577
|
readonly name: "topolo-social-studio";
|
|
578
578
|
readonly kind: "pages";
|
|
579
|
-
readonly apiUrl:
|
|
579
|
+
readonly apiUrl: any;
|
|
580
580
|
readonly domains: readonly [];
|
|
581
581
|
readonly routes: readonly [];
|
|
582
|
-
readonly serviceId:
|
|
582
|
+
readonly serviceId: any;
|
|
583
583
|
}, {
|
|
584
584
|
readonly name: "topolo-social-studio-api";
|
|
585
585
|
readonly kind: "worker";
|
|
@@ -590,10 +590,10 @@ declare const APPLICATIONS: {
|
|
|
590
590
|
}, {
|
|
591
591
|
readonly name: "topolo-social-studio-queue";
|
|
592
592
|
readonly kind: "worker";
|
|
593
|
-
readonly apiUrl:
|
|
593
|
+
readonly apiUrl: any;
|
|
594
594
|
readonly domains: readonly [];
|
|
595
595
|
readonly routes: readonly [];
|
|
596
|
-
readonly serviceId:
|
|
596
|
+
readonly serviceId: any;
|
|
597
597
|
}];
|
|
598
598
|
};
|
|
599
599
|
readonly socialize: {
|
|
@@ -606,10 +606,10 @@ declare const APPLICATIONS: {
|
|
|
606
606
|
readonly deployTargets: readonly [{
|
|
607
607
|
readonly name: "socialize";
|
|
608
608
|
readonly kind: "pages";
|
|
609
|
-
readonly apiUrl:
|
|
609
|
+
readonly apiUrl: any;
|
|
610
610
|
readonly domains: readonly [];
|
|
611
611
|
readonly routes: readonly [];
|
|
612
|
-
readonly serviceId:
|
|
612
|
+
readonly serviceId: any;
|
|
613
613
|
}, {
|
|
614
614
|
readonly name: "socialize-prod-api";
|
|
615
615
|
readonly kind: "worker";
|
|
@@ -620,10 +620,10 @@ declare const APPLICATIONS: {
|
|
|
620
620
|
}, {
|
|
621
621
|
readonly name: "socialize-prod-scheduler";
|
|
622
622
|
readonly kind: "worker";
|
|
623
|
-
readonly apiUrl:
|
|
623
|
+
readonly apiUrl: any;
|
|
624
624
|
readonly domains: readonly [];
|
|
625
625
|
readonly routes: readonly [];
|
|
626
|
-
readonly serviceId:
|
|
626
|
+
readonly serviceId: any;
|
|
627
627
|
}];
|
|
628
628
|
};
|
|
629
629
|
readonly support: {
|
|
@@ -662,14 +662,14 @@ declare const APPLICATIONS: {
|
|
|
662
662
|
readonly apiUrl: "https://sites.topolo.app";
|
|
663
663
|
readonly domains: readonly ["sites.topolo.app"];
|
|
664
664
|
readonly routes: readonly [];
|
|
665
|
-
readonly serviceId:
|
|
665
|
+
readonly serviceId: any;
|
|
666
666
|
}, {
|
|
667
667
|
readonly name: "topoloweb-studio";
|
|
668
668
|
readonly kind: "pages";
|
|
669
|
-
readonly apiUrl:
|
|
669
|
+
readonly apiUrl: any;
|
|
670
670
|
readonly domains: readonly ["web.topolo.app"];
|
|
671
671
|
readonly routes: readonly [];
|
|
672
|
-
readonly serviceId:
|
|
672
|
+
readonly serviceId: any;
|
|
673
673
|
}];
|
|
674
674
|
};
|
|
675
675
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare const SERVICES: {
|
|
|
47
47
|
readonly mdm: "https://topolo-mdm-api.topolo.app";
|
|
48
48
|
readonly messaging: "https://messages.topolo.app";
|
|
49
49
|
readonly nexus: "https://topolo-nexus-gateway.topolo.workers.dev";
|
|
50
|
-
readonly one: "https://
|
|
50
|
+
readonly one: "https://one.topolo.app";
|
|
51
51
|
readonly pay: "https://topolo-pay.topolo.workers.dev";
|
|
52
52
|
readonly "quro.api": "https://api.ol0.me";
|
|
53
53
|
readonly "quro.redirect": "https://ol0.me";
|
|
@@ -71,10 +71,10 @@ declare const APPLICATIONS: {
|
|
|
71
71
|
readonly deployTargets: readonly [{
|
|
72
72
|
readonly name: "topoloadmin";
|
|
73
73
|
readonly kind: "pages";
|
|
74
|
-
readonly apiUrl:
|
|
74
|
+
readonly apiUrl: any;
|
|
75
75
|
readonly domains: readonly [];
|
|
76
76
|
readonly routes: readonly [];
|
|
77
|
-
readonly serviceId:
|
|
77
|
+
readonly serviceId: any;
|
|
78
78
|
}];
|
|
79
79
|
};
|
|
80
80
|
readonly agent: {
|
|
@@ -87,10 +87,10 @@ declare const APPLICATIONS: {
|
|
|
87
87
|
readonly deployTargets: readonly [{
|
|
88
88
|
readonly name: "topolo-agent";
|
|
89
89
|
readonly kind: "pages";
|
|
90
|
-
readonly apiUrl:
|
|
90
|
+
readonly apiUrl: any;
|
|
91
91
|
readonly domains: readonly [];
|
|
92
92
|
readonly routes: readonly [];
|
|
93
|
-
readonly serviceId:
|
|
93
|
+
readonly serviceId: any;
|
|
94
94
|
}, {
|
|
95
95
|
readonly name: "topolo-agent-worker";
|
|
96
96
|
readonly kind: "worker";
|
|
@@ -142,10 +142,10 @@ declare const APPLICATIONS: {
|
|
|
142
142
|
readonly deployTargets: readonly [{
|
|
143
143
|
readonly name: "bytes";
|
|
144
144
|
readonly kind: "pages";
|
|
145
|
-
readonly apiUrl:
|
|
145
|
+
readonly apiUrl: any;
|
|
146
146
|
readonly domains: readonly [];
|
|
147
147
|
readonly routes: readonly [];
|
|
148
|
-
readonly serviceId:
|
|
148
|
+
readonly serviceId: any;
|
|
149
149
|
}, {
|
|
150
150
|
readonly name: "r2-media-manager-worker";
|
|
151
151
|
readonly kind: "worker";
|
|
@@ -192,7 +192,7 @@ declare const APPLICATIONS: {
|
|
|
192
192
|
readonly appDir: "TopoloCli";
|
|
193
193
|
readonly name: "@topolo/cli";
|
|
194
194
|
readonly packageName: "@topolo/cli";
|
|
195
|
-
readonly productionUrl:
|
|
195
|
+
readonly productionUrl: any;
|
|
196
196
|
readonly services: readonly [];
|
|
197
197
|
readonly deployTargets: readonly [];
|
|
198
198
|
};
|
|
@@ -201,7 +201,7 @@ declare const APPLICATIONS: {
|
|
|
201
201
|
readonly appDir: "TopoloCloudControl";
|
|
202
202
|
readonly name: "topolo-cloudcontrol";
|
|
203
203
|
readonly packageName: "topolo-cloudcontrol";
|
|
204
|
-
readonly productionUrl:
|
|
204
|
+
readonly productionUrl: any;
|
|
205
205
|
readonly services: readonly [];
|
|
206
206
|
readonly deployTargets: readonly [];
|
|
207
207
|
};
|
|
@@ -222,24 +222,24 @@ declare const APPLICATIONS: {
|
|
|
222
222
|
}, {
|
|
223
223
|
readonly name: "topolo-commerce-guest-web";
|
|
224
224
|
readonly kind: "pages";
|
|
225
|
-
readonly apiUrl:
|
|
225
|
+
readonly apiUrl: any;
|
|
226
226
|
readonly domains: readonly ["guest.topolo.app", "topolo-commerce-guest-web.pages.dev"];
|
|
227
227
|
readonly routes: readonly [];
|
|
228
|
-
readonly serviceId:
|
|
228
|
+
readonly serviceId: any;
|
|
229
229
|
}, {
|
|
230
230
|
readonly name: "topolo-commerce-ops-web";
|
|
231
231
|
readonly kind: "pages";
|
|
232
|
-
readonly apiUrl:
|
|
232
|
+
readonly apiUrl: any;
|
|
233
233
|
readonly domains: readonly ["commerce.topolo.app", "topolo-commerce-ops-web.pages.dev"];
|
|
234
234
|
readonly routes: readonly [];
|
|
235
|
-
readonly serviceId:
|
|
235
|
+
readonly serviceId: any;
|
|
236
236
|
}, {
|
|
237
237
|
readonly name: "topolo-commerce-station-web";
|
|
238
238
|
readonly kind: "pages";
|
|
239
|
-
readonly apiUrl:
|
|
239
|
+
readonly apiUrl: any;
|
|
240
240
|
readonly domains: readonly ["station-commerce.topolo.app", "topolo-commerce-station-web.pages.dev"];
|
|
241
241
|
readonly routes: readonly [];
|
|
242
|
-
readonly serviceId:
|
|
242
|
+
readonly serviceId: any;
|
|
243
243
|
}];
|
|
244
244
|
};
|
|
245
245
|
readonly crm: {
|
|
@@ -252,10 +252,10 @@ declare const APPLICATIONS: {
|
|
|
252
252
|
readonly deployTargets: readonly [{
|
|
253
253
|
readonly name: "topolo-crm-frontend";
|
|
254
254
|
readonly kind: "pages";
|
|
255
|
-
readonly apiUrl:
|
|
255
|
+
readonly apiUrl: any;
|
|
256
256
|
readonly domains: readonly [];
|
|
257
257
|
readonly routes: readonly [];
|
|
258
|
-
readonly serviceId:
|
|
258
|
+
readonly serviceId: any;
|
|
259
259
|
}, {
|
|
260
260
|
readonly name: "topolo-crm-worker";
|
|
261
261
|
readonly kind: "worker";
|
|
@@ -275,10 +275,10 @@ declare const APPLICATIONS: {
|
|
|
275
275
|
readonly deployTargets: readonly [{
|
|
276
276
|
readonly name: "topolo-developers";
|
|
277
277
|
readonly kind: "pages";
|
|
278
|
-
readonly apiUrl:
|
|
278
|
+
readonly apiUrl: any;
|
|
279
279
|
readonly domains: readonly ["developers.topolo.app"];
|
|
280
280
|
readonly routes: readonly [];
|
|
281
|
-
readonly serviceId:
|
|
281
|
+
readonly serviceId: any;
|
|
282
282
|
}];
|
|
283
283
|
};
|
|
284
284
|
readonly docs: {
|
|
@@ -291,17 +291,17 @@ declare const APPLICATIONS: {
|
|
|
291
291
|
readonly deployTargets: readonly [{
|
|
292
292
|
readonly name: "topolo-docs";
|
|
293
293
|
readonly kind: "pages";
|
|
294
|
-
readonly apiUrl:
|
|
294
|
+
readonly apiUrl: any;
|
|
295
295
|
readonly domains: readonly ["docs.topolo.app"];
|
|
296
296
|
readonly routes: readonly [];
|
|
297
|
-
readonly serviceId:
|
|
297
|
+
readonly serviceId: any;
|
|
298
298
|
}];
|
|
299
299
|
};
|
|
300
300
|
readonly feed: {
|
|
301
301
|
readonly id: "feed";
|
|
302
302
|
readonly appDir: "TopoloFeed";
|
|
303
303
|
readonly name: "TopoloFeed";
|
|
304
|
-
readonly packageName:
|
|
304
|
+
readonly packageName: any;
|
|
305
305
|
readonly productionUrl: "https://topolo-feed-api.topolo.app";
|
|
306
306
|
readonly services: readonly ["feed"];
|
|
307
307
|
readonly deployTargets: readonly [{
|
|
@@ -310,7 +310,7 @@ declare const APPLICATIONS: {
|
|
|
310
310
|
readonly apiUrl: "https://topolo-feed-analytics-api.topolo.app";
|
|
311
311
|
readonly domains: readonly ["topolo-feed-analytics-api.topolo.app"];
|
|
312
312
|
readonly routes: readonly ["topolo-feed-analytics-api.topolo.app"];
|
|
313
|
-
readonly serviceId:
|
|
313
|
+
readonly serviceId: any;
|
|
314
314
|
}, {
|
|
315
315
|
readonly name: "topolo-feed-api";
|
|
316
316
|
readonly kind: "worker";
|
|
@@ -330,10 +330,10 @@ declare const APPLICATIONS: {
|
|
|
330
330
|
readonly deployTargets: readonly [{
|
|
331
331
|
readonly name: "forecast";
|
|
332
332
|
readonly kind: "pages";
|
|
333
|
-
readonly apiUrl:
|
|
333
|
+
readonly apiUrl: any;
|
|
334
334
|
readonly domains: readonly [];
|
|
335
335
|
readonly routes: readonly [];
|
|
336
|
-
readonly serviceId:
|
|
336
|
+
readonly serviceId: any;
|
|
337
337
|
}, {
|
|
338
338
|
readonly name: "forecast-worker-production";
|
|
339
339
|
readonly kind: "worker";
|
|
@@ -353,10 +353,10 @@ declare const APPLICATIONS: {
|
|
|
353
353
|
readonly deployTargets: readonly [{
|
|
354
354
|
readonly name: "topololearn";
|
|
355
355
|
readonly kind: "pages";
|
|
356
|
-
readonly apiUrl:
|
|
356
|
+
readonly apiUrl: any;
|
|
357
357
|
readonly domains: readonly ["learn.topolo.app"];
|
|
358
358
|
readonly routes: readonly [];
|
|
359
|
-
readonly serviceId:
|
|
359
|
+
readonly serviceId: any;
|
|
360
360
|
}, {
|
|
361
361
|
readonly name: "topololearn-api";
|
|
362
362
|
readonly kind: "worker";
|
|
@@ -387,7 +387,7 @@ declare const APPLICATIONS: {
|
|
|
387
387
|
readonly appDir: "TopoloMCP";
|
|
388
388
|
readonly name: "@topolo/mcp";
|
|
389
389
|
readonly packageName: "@topolo/mcp";
|
|
390
|
-
readonly productionUrl:
|
|
390
|
+
readonly productionUrl: any;
|
|
391
391
|
readonly services: readonly [];
|
|
392
392
|
readonly deployTargets: readonly [];
|
|
393
393
|
};
|
|
@@ -395,7 +395,7 @@ declare const APPLICATIONS: {
|
|
|
395
395
|
readonly id: "mdm";
|
|
396
396
|
readonly appDir: "TopoloMDM";
|
|
397
397
|
readonly name: "TopoloMDM";
|
|
398
|
-
readonly packageName:
|
|
398
|
+
readonly packageName: any;
|
|
399
399
|
readonly productionUrl: "https://mdm.topolo.app";
|
|
400
400
|
readonly services: readonly ["mdm"];
|
|
401
401
|
readonly deployTargets: readonly [{
|
|
@@ -408,10 +408,10 @@ declare const APPLICATIONS: {
|
|
|
408
408
|
}, {
|
|
409
409
|
readonly name: "topolo-mdm-console";
|
|
410
410
|
readonly kind: "pages";
|
|
411
|
-
readonly apiUrl:
|
|
411
|
+
readonly apiUrl: any;
|
|
412
412
|
readonly domains: readonly ["mdm.topolo.app", "topolo-mdm-console.pages.dev"];
|
|
413
413
|
readonly routes: readonly ["mdm.topolo.app"];
|
|
414
|
-
readonly serviceId:
|
|
414
|
+
readonly serviceId: any;
|
|
415
415
|
}];
|
|
416
416
|
};
|
|
417
417
|
readonly messaging: {
|
|
@@ -431,10 +431,10 @@ declare const APPLICATIONS: {
|
|
|
431
431
|
}, {
|
|
432
432
|
readonly name: "topolo-messaging-dispatch";
|
|
433
433
|
readonly kind: "workers";
|
|
434
|
-
readonly apiUrl:
|
|
434
|
+
readonly apiUrl: any;
|
|
435
435
|
readonly domains: readonly [];
|
|
436
436
|
readonly routes: readonly [];
|
|
437
|
-
readonly serviceId:
|
|
437
|
+
readonly serviceId: any;
|
|
438
438
|
}];
|
|
439
439
|
};
|
|
440
440
|
readonly nexus: {
|
|
@@ -447,10 +447,10 @@ declare const APPLICATIONS: {
|
|
|
447
447
|
readonly deployTargets: readonly [{
|
|
448
448
|
readonly name: "topolo-nexus-dashboard";
|
|
449
449
|
readonly kind: "pages";
|
|
450
|
-
readonly apiUrl:
|
|
450
|
+
readonly apiUrl: any;
|
|
451
451
|
readonly domains: readonly ["nexus.topolo.app", "topolo-nexus-dashboard.pages.dev"];
|
|
452
452
|
readonly routes: readonly [];
|
|
453
|
-
readonly serviceId:
|
|
453
|
+
readonly serviceId: any;
|
|
454
454
|
}, {
|
|
455
455
|
readonly name: "topolo-nexus-gateway";
|
|
456
456
|
readonly kind: "worker";
|
|
@@ -470,28 +470,28 @@ declare const APPLICATIONS: {
|
|
|
470
470
|
readonly deployTargets: readonly [{
|
|
471
471
|
readonly name: "ai-chat-rag";
|
|
472
472
|
readonly kind: "worker";
|
|
473
|
-
readonly apiUrl:
|
|
473
|
+
readonly apiUrl: any;
|
|
474
474
|
readonly domains: readonly ["ai-chat-rag.topolo.workers.dev"];
|
|
475
475
|
readonly routes: readonly [];
|
|
476
|
-
readonly serviceId:
|
|
476
|
+
readonly serviceId: any;
|
|
477
477
|
}, {
|
|
478
478
|
readonly name: "topoloone";
|
|
479
479
|
readonly kind: "pages";
|
|
480
|
-
readonly apiUrl:
|
|
480
|
+
readonly apiUrl: any;
|
|
481
481
|
readonly domains: readonly ["oneclick-dashboard.pages.dev"];
|
|
482
482
|
readonly routes: readonly [];
|
|
483
|
-
readonly serviceId:
|
|
483
|
+
readonly serviceId: any;
|
|
484
484
|
}, {
|
|
485
485
|
readonly name: "topoloone-website";
|
|
486
486
|
readonly kind: "worker";
|
|
487
|
-
readonly apiUrl:
|
|
487
|
+
readonly apiUrl: any;
|
|
488
488
|
readonly domains: readonly ["one.topolo.io"];
|
|
489
489
|
readonly routes: readonly [];
|
|
490
|
-
readonly serviceId:
|
|
490
|
+
readonly serviceId: any;
|
|
491
491
|
}, {
|
|
492
492
|
readonly name: "topoloone-worker";
|
|
493
493
|
readonly kind: "worker";
|
|
494
|
-
readonly apiUrl: "https://
|
|
494
|
+
readonly apiUrl: "https://one.topolo.app";
|
|
495
495
|
readonly domains: readonly [];
|
|
496
496
|
readonly routes: readonly ["one.topolo.app/*"];
|
|
497
497
|
readonly serviceId: "one";
|
|
@@ -517,7 +517,7 @@ declare const APPLICATIONS: {
|
|
|
517
517
|
readonly id: "quro";
|
|
518
518
|
readonly appDir: "TopoloQuro";
|
|
519
519
|
readonly name: "TopoloQuro";
|
|
520
|
-
readonly packageName:
|
|
520
|
+
readonly packageName: any;
|
|
521
521
|
readonly productionUrl: "https://quro.topolo.app";
|
|
522
522
|
readonly services: readonly ["quro.api", "quro.redirect"];
|
|
523
523
|
readonly deployTargets: readonly [{
|
|
@@ -537,10 +537,10 @@ declare const APPLICATIONS: {
|
|
|
537
537
|
}, {
|
|
538
538
|
readonly name: "quro-ui";
|
|
539
539
|
readonly kind: "pages";
|
|
540
|
-
readonly apiUrl:
|
|
540
|
+
readonly apiUrl: any;
|
|
541
541
|
readonly domains: readonly [];
|
|
542
542
|
readonly routes: readonly [];
|
|
543
|
-
readonly serviceId:
|
|
543
|
+
readonly serviceId: any;
|
|
544
544
|
}];
|
|
545
545
|
};
|
|
546
546
|
readonly roadmapper: {
|
|
@@ -553,10 +553,10 @@ declare const APPLICATIONS: {
|
|
|
553
553
|
readonly deployTargets: readonly [{
|
|
554
554
|
readonly name: "roadmapper";
|
|
555
555
|
readonly kind: "pages";
|
|
556
|
-
readonly apiUrl:
|
|
556
|
+
readonly apiUrl: any;
|
|
557
557
|
readonly domains: readonly ["roadmapper.topolo.app"];
|
|
558
558
|
readonly routes: readonly [];
|
|
559
|
-
readonly serviceId:
|
|
559
|
+
readonly serviceId: any;
|
|
560
560
|
}, {
|
|
561
561
|
readonly name: "topolo-production-roadmapper";
|
|
562
562
|
readonly kind: "worker";
|
|
@@ -576,10 +576,10 @@ declare const APPLICATIONS: {
|
|
|
576
576
|
readonly deployTargets: readonly [{
|
|
577
577
|
readonly name: "topolo-social-studio";
|
|
578
578
|
readonly kind: "pages";
|
|
579
|
-
readonly apiUrl:
|
|
579
|
+
readonly apiUrl: any;
|
|
580
580
|
readonly domains: readonly [];
|
|
581
581
|
readonly routes: readonly [];
|
|
582
|
-
readonly serviceId:
|
|
582
|
+
readonly serviceId: any;
|
|
583
583
|
}, {
|
|
584
584
|
readonly name: "topolo-social-studio-api";
|
|
585
585
|
readonly kind: "worker";
|
|
@@ -590,10 +590,10 @@ declare const APPLICATIONS: {
|
|
|
590
590
|
}, {
|
|
591
591
|
readonly name: "topolo-social-studio-queue";
|
|
592
592
|
readonly kind: "worker";
|
|
593
|
-
readonly apiUrl:
|
|
593
|
+
readonly apiUrl: any;
|
|
594
594
|
readonly domains: readonly [];
|
|
595
595
|
readonly routes: readonly [];
|
|
596
|
-
readonly serviceId:
|
|
596
|
+
readonly serviceId: any;
|
|
597
597
|
}];
|
|
598
598
|
};
|
|
599
599
|
readonly socialize: {
|
|
@@ -606,10 +606,10 @@ declare const APPLICATIONS: {
|
|
|
606
606
|
readonly deployTargets: readonly [{
|
|
607
607
|
readonly name: "socialize";
|
|
608
608
|
readonly kind: "pages";
|
|
609
|
-
readonly apiUrl:
|
|
609
|
+
readonly apiUrl: any;
|
|
610
610
|
readonly domains: readonly [];
|
|
611
611
|
readonly routes: readonly [];
|
|
612
|
-
readonly serviceId:
|
|
612
|
+
readonly serviceId: any;
|
|
613
613
|
}, {
|
|
614
614
|
readonly name: "socialize-prod-api";
|
|
615
615
|
readonly kind: "worker";
|
|
@@ -620,10 +620,10 @@ declare const APPLICATIONS: {
|
|
|
620
620
|
}, {
|
|
621
621
|
readonly name: "socialize-prod-scheduler";
|
|
622
622
|
readonly kind: "worker";
|
|
623
|
-
readonly apiUrl:
|
|
623
|
+
readonly apiUrl: any;
|
|
624
624
|
readonly domains: readonly [];
|
|
625
625
|
readonly routes: readonly [];
|
|
626
|
-
readonly serviceId:
|
|
626
|
+
readonly serviceId: any;
|
|
627
627
|
}];
|
|
628
628
|
};
|
|
629
629
|
readonly support: {
|
|
@@ -662,14 +662,14 @@ declare const APPLICATIONS: {
|
|
|
662
662
|
readonly apiUrl: "https://sites.topolo.app";
|
|
663
663
|
readonly domains: readonly ["sites.topolo.app"];
|
|
664
664
|
readonly routes: readonly [];
|
|
665
|
-
readonly serviceId:
|
|
665
|
+
readonly serviceId: any;
|
|
666
666
|
}, {
|
|
667
667
|
readonly name: "topoloweb-studio";
|
|
668
668
|
readonly kind: "pages";
|
|
669
|
-
readonly apiUrl:
|
|
669
|
+
readonly apiUrl: any;
|
|
670
670
|
readonly domains: readonly ["web.topolo.app"];
|
|
671
671
|
readonly routes: readonly [];
|
|
672
|
-
readonly serviceId:
|
|
672
|
+
readonly serviceId: any;
|
|
673
673
|
}];
|
|
674
674
|
};
|
|
675
675
|
};
|
package/dist/index.js
CHANGED
|
@@ -73,7 +73,7 @@ var SERVICES = {
|
|
|
73
73
|
mdm: "https://topolo-mdm-api.topolo.app",
|
|
74
74
|
messaging: "https://messages.topolo.app",
|
|
75
75
|
nexus: "https://topolo-nexus-gateway.topolo.workers.dev",
|
|
76
|
-
one: "https://
|
|
76
|
+
one: "https://one.topolo.app",
|
|
77
77
|
pay: "https://topolo-pay.topolo.workers.dev",
|
|
78
78
|
"quro.api": "https://api.ol0.me",
|
|
79
79
|
"quro.redirect": "https://ol0.me",
|
|
@@ -672,7 +672,7 @@ var APPLICATIONS = {
|
|
|
672
672
|
{
|
|
673
673
|
"name": "topoloone-worker",
|
|
674
674
|
"kind": "worker",
|
|
675
|
-
"apiUrl": "https://
|
|
675
|
+
"apiUrl": "https://one.topolo.app",
|
|
676
676
|
"domains": [],
|
|
677
677
|
"routes": [
|
|
678
678
|
"one.topolo.app/*"
|
|
@@ -1080,8 +1080,9 @@ var APPLICATION_REQUIREMENTS = [
|
|
|
1080
1080
|
];
|
|
1081
1081
|
function applicationRequirementScopes(application) {
|
|
1082
1082
|
const scopes = /* @__PURE__ */ new Set(["all"]);
|
|
1083
|
-
const
|
|
1084
|
-
const
|
|
1083
|
+
const deployTargets = application.deployTargets;
|
|
1084
|
+
const hasBrowserSurface = Boolean(application.productionUrl) || deployTargets.some((target) => target.kind === "pages");
|
|
1085
|
+
const hasApiSurface = application.services.length > 0 || deployTargets.some((target) => Boolean(target.apiUrl));
|
|
1085
1086
|
if (hasBrowserSurface) scopes.add("browser");
|
|
1086
1087
|
if (hasApiSurface) scopes.add("api");
|
|
1087
1088
|
if (application.id === "cli" || application.id === "mcp" || application.id === "cloudcontrol") {
|
|
@@ -1269,10 +1270,11 @@ function statusRank(status) {
|
|
|
1269
1270
|
// src/services.ts
|
|
1270
1271
|
var DEFAULT_SERVICE_URLS = SERVICES;
|
|
1271
1272
|
function resolveServiceUrl(service, overrides) {
|
|
1272
|
-
|
|
1273
|
+
var _a;
|
|
1274
|
+
const override = overrides == null ? void 0 : overrides[service];
|
|
1273
1275
|
if (override) return override;
|
|
1274
1276
|
const envKey = `TOPOLO_SERVICE_URL_${service.replace(/\./g, "_").toUpperCase()}`;
|
|
1275
|
-
const envValue = typeof process !== "undefined" ? process.env
|
|
1277
|
+
const envValue = typeof process !== "undefined" ? (_a = process.env) == null ? void 0 : _a[envKey] : void 0;
|
|
1276
1278
|
if (envValue) return envValue;
|
|
1277
1279
|
return DEFAULT_SERVICE_URLS[service];
|
|
1278
1280
|
}
|
|
@@ -1288,8 +1290,9 @@ var TopoloClient = class {
|
|
|
1288
1290
|
fetchImpl;
|
|
1289
1291
|
debug;
|
|
1290
1292
|
constructor(options) {
|
|
1293
|
+
var _a;
|
|
1291
1294
|
if (!options.credential) throw new TopoloAuthError("credential is required");
|
|
1292
|
-
if (!options.agent
|
|
1295
|
+
if (!((_a = options.agent) == null ? void 0 : _a.clientName)) throw new TopoloAuthError("agent.clientName is required");
|
|
1293
1296
|
this.credential = options.credential;
|
|
1294
1297
|
this.agent = options.agent;
|
|
1295
1298
|
this.serviceUrls = options.serviceUrls;
|
|
@@ -1479,6 +1482,7 @@ var CrmModule = class {
|
|
|
1479
1482
|
}
|
|
1480
1483
|
client;
|
|
1481
1484
|
async listContacts(options = {}) {
|
|
1485
|
+
var _a, _b, _c;
|
|
1482
1486
|
const res = await this.client.request({
|
|
1483
1487
|
service: "crm",
|
|
1484
1488
|
path: "/api/contacts",
|
|
@@ -1488,12 +1492,12 @@ var CrmModule = class {
|
|
|
1488
1492
|
pageSize: options.pageSize
|
|
1489
1493
|
}
|
|
1490
1494
|
});
|
|
1491
|
-
const rows = Array.isArray(res
|
|
1495
|
+
const rows = Array.isArray(res == null ? void 0 : res.contacts) ? res.contacts : Array.isArray(res == null ? void 0 : res.data) ? res.data : [];
|
|
1492
1496
|
return {
|
|
1493
1497
|
contacts: rows.map(toSummary),
|
|
1494
|
-
total: res
|
|
1495
|
-
page: res
|
|
1496
|
-
pageSize: res
|
|
1498
|
+
total: (res == null ? void 0 : res.total) ?? ((_a = res == null ? void 0 : res.pagination) == null ? void 0 : _a.total) ?? rows.length,
|
|
1499
|
+
page: (res == null ? void 0 : res.page) ?? ((_b = res == null ? void 0 : res.pagination) == null ? void 0 : _b.page) ?? options.page ?? 1,
|
|
1500
|
+
pageSize: (res == null ? void 0 : res.pageSize) ?? ((_c = res == null ? void 0 : res.pagination) == null ? void 0 : _c.pageSize) ?? options.pageSize ?? rows.length
|
|
1497
1501
|
};
|
|
1498
1502
|
}
|
|
1499
1503
|
async getContact(contactId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPLICATIONS,
|
|
3
3
|
type ApplicationCatalogEntry,
|
|
4
|
+
type ApplicationDeployTarget,
|
|
4
5
|
type ApplicationId,
|
|
5
6
|
} from './applications.generated.js';
|
|
6
7
|
|
|
@@ -245,11 +246,12 @@ export function applicationRequirementScopes(
|
|
|
245
246
|
application: ApplicationCatalogEntry,
|
|
246
247
|
): ApplicationRequirementScope[] {
|
|
247
248
|
const scopes = new Set<ApplicationRequirementScope>(['all']);
|
|
249
|
+
const deployTargets = application.deployTargets as readonly ApplicationDeployTarget[];
|
|
248
250
|
const hasBrowserSurface =
|
|
249
|
-
Boolean(application.productionUrl) ||
|
|
251
|
+
Boolean(application.productionUrl) || deployTargets.some((target) => target.kind === 'pages');
|
|
250
252
|
const hasApiSurface =
|
|
251
253
|
application.services.length > 0 ||
|
|
252
|
-
|
|
254
|
+
deployTargets.some((target) => Boolean(target.apiUrl));
|
|
253
255
|
|
|
254
256
|
if (hasBrowserSurface) scopes.add('browser');
|
|
255
257
|
if (hasApiSurface) scopes.add('api');
|
|
@@ -18,7 +18,7 @@ export const SERVICES = {
|
|
|
18
18
|
mdm: "https://topolo-mdm-api.topolo.app",
|
|
19
19
|
messaging: "https://messages.topolo.app",
|
|
20
20
|
nexus: "https://topolo-nexus-gateway.topolo.workers.dev",
|
|
21
|
-
one: "https://
|
|
21
|
+
one: "https://one.topolo.app",
|
|
22
22
|
pay: "https://topolo-pay.topolo.workers.dev",
|
|
23
23
|
"quro.api": "https://api.ol0.me",
|
|
24
24
|
"quro.redirect": "https://ol0.me",
|
package/src/services.test.ts
CHANGED
|
@@ -48,6 +48,7 @@ describe('service registry', () => {
|
|
|
48
48
|
calendar: 'https://calendar.topolo.app',
|
|
49
49
|
feed: 'https://topolo-feed-api.topolo.app',
|
|
50
50
|
mail: 'https://mail.topolo.app',
|
|
51
|
+
one: 'https://one.topolo.app',
|
|
51
52
|
web: 'https://web-api.topolo.app',
|
|
52
53
|
});
|
|
53
54
|
expect(DEFAULT_SERVICE_URLS).not.toHaveProperty('web.api');
|