@topolo/sdk 0.2.8 → 0.2.10
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 +518 -114
- package/dist/index.d.cts +443 -107
- package/dist/index.d.ts +443 -107
- package/dist/index.js +517 -114
- package/package.json +1 -1
- package/src/application-requirements.ts +3 -1
- package/src/applications.generated.ts +271 -97
- package/src/index.ts +17 -0
- package/src/modules/p2p.test.ts +218 -0
- package/src/modules/p2p.ts +451 -0
- package/src/services.generated.ts +24 -14
- package/src/services.test.ts +12 -5
|
@@ -3,39 +3,44 @@
|
|
|
3
3
|
// Regenerate: npm run generate:services
|
|
4
4
|
|
|
5
5
|
export const SERVICES = {
|
|
6
|
-
agent: "https://
|
|
6
|
+
agent: "https://agent-api.topolo.app",
|
|
7
7
|
auth: "https://auth.topolo.app",
|
|
8
8
|
books: "https://books.topolo.app",
|
|
9
9
|
bugfix: "https://bugfix.topolo.app",
|
|
10
|
-
bytes: "https://
|
|
10
|
+
bytes: "https://bytes-api.topolo.app",
|
|
11
11
|
calendar: "https://calendar.topolo.app",
|
|
12
|
-
capacity: "https://
|
|
12
|
+
capacity: "https://capacity.topolo.app",
|
|
13
13
|
chat: "https://chat.topolo.app",
|
|
14
|
-
commerce: "https://
|
|
14
|
+
commerce: "https://commerce-api.topolo.app",
|
|
15
15
|
compose: "https://compose.topolo.app",
|
|
16
16
|
crm: "https://crm-api.topolo.app",
|
|
17
|
-
customer_success: "https://
|
|
18
|
-
|
|
17
|
+
customer_success: "https://success.topolo.app",
|
|
18
|
+
director: "https://director.topolo.app",
|
|
19
|
+
feed: "https://feed-api.topolo.app",
|
|
19
20
|
flow: "https://flow.topolo.app",
|
|
20
|
-
forecast: "https://forecast-
|
|
21
|
+
forecast: "https://forecast-api.topolo.app",
|
|
21
22
|
forms: "https://forms.topolo.app",
|
|
22
23
|
insights: "https://insights.topolo.app",
|
|
23
24
|
inventory: "https://inventory.topolo.app",
|
|
24
|
-
learn: "https://
|
|
25
|
+
learn: "https://learn-api.topolo.app",
|
|
26
|
+
localize: "https://localize.topolo.app",
|
|
25
27
|
mail: "https://mail.topolo.app",
|
|
26
|
-
mdm: "https://
|
|
28
|
+
mdm: "https://mdm-api.topolo.app",
|
|
27
29
|
messaging: "https://messages.topolo.app",
|
|
28
|
-
nexus: "https://
|
|
30
|
+
nexus: "https://nexus-api.topolo.app",
|
|
29
31
|
notify: "https://notify.topolo.app",
|
|
30
32
|
one: "https://one.topolo.app",
|
|
31
|
-
|
|
33
|
+
"one.ai": "https://ai.one.topolo.app",
|
|
34
|
+
p2p: "https://p2p.topolo.app",
|
|
35
|
+
pay: "https://pay.topolo.app",
|
|
32
36
|
people: "https://people.topolo.app",
|
|
33
37
|
"quro.api": "https://api.ol0.me",
|
|
34
38
|
"quro.redirect": "https://ol0.me",
|
|
35
39
|
roadmapper: "https://roadmapper-api.topolo.app",
|
|
36
40
|
sign: "https://sign.topolo.app",
|
|
37
|
-
social_studio: "https://
|
|
38
|
-
socialize: "https://socialize-
|
|
41
|
+
social_studio: "https://studio-api.topolo.app",
|
|
42
|
+
socialize: "https://socialize-api.topolo.app",
|
|
43
|
+
status: "https://status.topolo.app",
|
|
39
44
|
support: "https://support.topolo.app",
|
|
40
45
|
survey: "https://survey.topolo.app",
|
|
41
46
|
voice: "https://voice.topolo.app",
|
|
@@ -46,16 +51,21 @@ export type ServiceId = keyof typeof SERVICES;
|
|
|
46
51
|
|
|
47
52
|
export const PLATFORM_SERVICE_IDS: Partial<Record<ServiceId, string>> = {
|
|
48
53
|
books: "srv_topolo_books",
|
|
54
|
+
bugfix: "srv_topolo_bugfix",
|
|
49
55
|
compose: "srv_topolo_compose",
|
|
50
56
|
crm: "srv_iCwM4jGXcwlj",
|
|
51
|
-
customer_success: "
|
|
57
|
+
customer_success: "srv_topolo_success",
|
|
58
|
+
director: "srv_topolo_director",
|
|
52
59
|
flow: "srv_topolo_flow",
|
|
53
60
|
forms: "srv_topolo_forms",
|
|
54
61
|
insights: "srv_topolo_insights",
|
|
55
62
|
inventory: "srv_topolo_inventory",
|
|
63
|
+
localize: "srv_topolo_localize",
|
|
56
64
|
notify: "svc_topolo_notify",
|
|
65
|
+
p2p: "srv_topolo_p2p",
|
|
57
66
|
people: "srv_topolo_people",
|
|
58
67
|
sign: "srv_topolo_sign",
|
|
68
|
+
status: "srv_topolo_status",
|
|
59
69
|
survey: "srv_topolo_survey",
|
|
60
70
|
voice: "srv_topolo_voice",
|
|
61
71
|
};
|
package/src/services.test.ts
CHANGED
|
@@ -26,7 +26,9 @@ const EXPECTED_APPLICATION_IDS = [
|
|
|
26
26
|
'compose',
|
|
27
27
|
'crm',
|
|
28
28
|
'customer_success',
|
|
29
|
+
'd1_backup',
|
|
29
30
|
'developers',
|
|
31
|
+
'director',
|
|
30
32
|
'docs',
|
|
31
33
|
'feed',
|
|
32
34
|
'flow',
|
|
@@ -35,20 +37,25 @@ const EXPECTED_APPLICATION_IDS = [
|
|
|
35
37
|
'insights',
|
|
36
38
|
'inventory',
|
|
37
39
|
'learn',
|
|
40
|
+
'localize',
|
|
38
41
|
'mail',
|
|
39
42
|
'mcp',
|
|
40
43
|
'mdm',
|
|
41
44
|
'messaging',
|
|
42
45
|
'nexus',
|
|
43
46
|
'notify',
|
|
47
|
+
'observability_watch',
|
|
44
48
|
'one',
|
|
49
|
+
'p2p',
|
|
45
50
|
'pay',
|
|
46
51
|
'people',
|
|
52
|
+
'pulse',
|
|
47
53
|
'quro',
|
|
48
54
|
'roadmapper',
|
|
49
55
|
'sign',
|
|
50
56
|
'social_studio',
|
|
51
57
|
'socialize',
|
|
58
|
+
'status',
|
|
52
59
|
'support',
|
|
53
60
|
'survey',
|
|
54
61
|
'voice',
|
|
@@ -60,13 +67,13 @@ describe('service registry', () => {
|
|
|
60
67
|
expect(DEFAULT_SERVICE_URLS).toMatchObject({
|
|
61
68
|
calendar: 'https://calendar.topolo.app',
|
|
62
69
|
books: 'https://books.topolo.app',
|
|
63
|
-
feed: 'https://
|
|
70
|
+
feed: 'https://feed-api.topolo.app',
|
|
64
71
|
mail: 'https://mail.topolo.app',
|
|
65
72
|
one: 'https://one.topolo.app',
|
|
66
73
|
web: 'https://web-api.topolo.app',
|
|
67
74
|
});
|
|
68
75
|
expect(DEFAULT_SERVICE_URLS).toMatchObject({
|
|
69
|
-
customer_success: 'https://
|
|
76
|
+
customer_success: 'https://success.topolo.app',
|
|
70
77
|
forms: 'https://forms.topolo.app',
|
|
71
78
|
survey: 'https://survey.topolo.app',
|
|
72
79
|
});
|
|
@@ -78,7 +85,7 @@ describe('service registry', () => {
|
|
|
78
85
|
const { PLATFORM_SERVICE_IDS } = await import('./services.js');
|
|
79
86
|
|
|
80
87
|
expect(PLATFORM_SERVICE_IDS.books).toBe('srv_topolo_books');
|
|
81
|
-
expect(PLATFORM_SERVICE_IDS.customer_success).toBe('
|
|
88
|
+
expect(PLATFORM_SERVICE_IDS.customer_success).toBe('srv_topolo_success');
|
|
82
89
|
});
|
|
83
90
|
|
|
84
91
|
it('maps every callable service back to an application catalog entry', () => {
|
|
@@ -113,10 +120,10 @@ describe('application catalog', () => {
|
|
|
113
120
|
it('treats TopoloWeb runtime as a deploy target, not an agent-callable API service', () => {
|
|
114
121
|
expect(APPLICATIONS.web.services).toEqual(['web']);
|
|
115
122
|
expect(
|
|
116
|
-
APPLICATIONS.web.deployTargets.find((target) => target.name === '
|
|
123
|
+
APPLICATIONS.web.deployTargets.find((target) => target.name === 'topolo-web-api')?.serviceId,
|
|
117
124
|
).toBe('web');
|
|
118
125
|
expect(
|
|
119
|
-
APPLICATIONS.web.deployTargets.find((target) => target.name === '
|
|
126
|
+
APPLICATIONS.web.deployTargets.find((target) => target.name === 'topolo-web-runtime')?.serviceId,
|
|
120
127
|
).toBeNull();
|
|
121
128
|
});
|
|
122
129
|
|