@symbo.ls/sdk 2.31.34 → 2.31.36
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/cjs/config/environment.js +13 -17
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/services/AuthService.js +1 -128
- package/dist/cjs/services/BaseService.js +0 -15
- package/dist/cjs/services/CollabService.js +6 -5
- package/dist/esm/config/environment.js +13 -17
- package/dist/esm/index.js +26 -159
- package/dist/esm/services/AdminService.js +13 -32
- package/dist/esm/services/AuthService.js +14 -148
- package/dist/esm/services/BaseService.js +13 -32
- package/dist/esm/services/BranchService.js +13 -32
- package/dist/esm/services/CollabService.js +19 -37
- package/dist/esm/services/CoreService.js +13 -32
- package/dist/esm/services/DnsService.js +13 -32
- package/dist/esm/services/FileService.js +13 -32
- package/dist/esm/services/PaymentService.js +13 -32
- package/dist/esm/services/PlanService.js +13 -32
- package/dist/esm/services/ProjectService.js +13 -32
- package/dist/esm/services/PullRequestService.js +13 -32
- package/dist/esm/services/ScreenshotService.js +13 -32
- package/dist/esm/services/SubscriptionService.js +13 -32
- package/dist/esm/services/index.js +20 -153
- package/dist/esm/utils/CollabClient.js +13 -17
- package/dist/node/config/environment.js +13 -17
- package/dist/node/index.js +6 -6
- package/dist/node/services/AuthService.js +1 -118
- package/dist/node/services/BaseService.js +0 -15
- package/dist/node/services/CollabService.js +6 -5
- package/package.json +6 -6
- package/src/config/environment.js +13 -18
- package/src/index.js +27 -23
- package/src/services/AuthService.js +1 -154
- package/src/services/BaseService.js +1 -21
- package/src/services/CollabService.js +8 -6
|
@@ -46,8 +46,8 @@ var CONFIG = {
|
|
|
46
46
|
apiUrl: "https://dev.api.symbols.app",
|
|
47
47
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
48
48
|
typesenseCollectionName: "docs",
|
|
49
|
-
typesenseApiKey: "
|
|
50
|
-
typesenseHost: "
|
|
49
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
50
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
51
51
|
typesensePort: "443",
|
|
52
52
|
typesenseProtocol: "https"
|
|
53
53
|
},
|
|
@@ -59,22 +59,18 @@ var CONFIG = {
|
|
|
59
59
|
basedOrg: "symbols",
|
|
60
60
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
61
61
|
typesenseCollectionName: "docs",
|
|
62
|
-
typesenseApiKey: "
|
|
63
|
-
typesenseHost: "
|
|
62
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
63
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
64
64
|
typesensePort: "443",
|
|
65
65
|
typesenseProtocol: "https"
|
|
66
66
|
},
|
|
67
67
|
upcoming: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
// cloning from dev
|
|
72
|
-
socketUrl: "https://dev.api.symbols.app",
|
|
73
|
-
apiUrl: "https://dev.api.symbols.app",
|
|
74
|
-
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
68
|
+
socketUrl: "https://upcoming.api.symbols.app",
|
|
69
|
+
apiUrl: "https://upcoming.api.symbols.app",
|
|
70
|
+
githubClientId: "Ov23liWF7NvdZ056RV5J",
|
|
75
71
|
typesenseCollectionName: "docs",
|
|
76
|
-
typesenseApiKey: "
|
|
77
|
-
typesenseHost: "
|
|
72
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
73
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
78
74
|
typesensePort: "443",
|
|
79
75
|
typesenseProtocol: "https"
|
|
80
76
|
},
|
|
@@ -86,8 +82,8 @@ var CONFIG = {
|
|
|
86
82
|
basedOrg: "symbols",
|
|
87
83
|
githubClientId: "Ov23ligwZDQVD0VfuWNa",
|
|
88
84
|
typesenseCollectionName: "docs",
|
|
89
|
-
typesenseApiKey: "
|
|
90
|
-
typesenseHost: "
|
|
85
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
86
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
91
87
|
typesensePort: "443",
|
|
92
88
|
typesenseProtocol: "https"
|
|
93
89
|
},
|
|
@@ -99,8 +95,8 @@ var CONFIG = {
|
|
|
99
95
|
basedOrg: "symbols",
|
|
100
96
|
githubClientId: "Ov23liFAlOEIXtX3dBtR",
|
|
101
97
|
typesenseCollectionName: "docs",
|
|
102
|
-
typesenseApiKey: "
|
|
103
|
-
typesenseHost: "
|
|
98
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
99
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
104
100
|
typesensePort: "443",
|
|
105
101
|
typesenseProtocol: "https"
|
|
106
102
|
}
|
|
@@ -585,20 +581,10 @@ var BaseService = class {
|
|
|
585
581
|
}
|
|
586
582
|
this._tokenManager = getTokenManager({
|
|
587
583
|
apiUrl: this._apiUrl,
|
|
588
|
-
onTokenRefresh: (tokens) => {
|
|
589
|
-
this.updateContext({ authToken: tokens.accessToken });
|
|
590
|
-
},
|
|
591
|
-
onTokenExpired: () => {
|
|
592
|
-
this.updateContext({ authToken: null });
|
|
593
|
-
},
|
|
594
584
|
onTokenError: (error) => {
|
|
595
585
|
console.error("Token management error:", error);
|
|
596
586
|
}
|
|
597
587
|
});
|
|
598
|
-
const { authToken } = this._context;
|
|
599
|
-
if (authToken && !this._tokenManager.hasTokens()) {
|
|
600
|
-
this._tokenManager.setTokens({ access_token: authToken });
|
|
601
|
-
}
|
|
602
588
|
this._setReady();
|
|
603
589
|
} catch (error) {
|
|
604
590
|
this._setError(error);
|
|
@@ -664,11 +650,6 @@ var BaseService = class {
|
|
|
664
650
|
error
|
|
665
651
|
);
|
|
666
652
|
}
|
|
667
|
-
} else if (this._requiresInit(options.methodName)) {
|
|
668
|
-
const { authToken } = this._context;
|
|
669
|
-
if (authToken) {
|
|
670
|
-
defaultHeaders.Authorization = `Bearer ${authToken}`;
|
|
671
|
-
}
|
|
672
653
|
}
|
|
673
654
|
try {
|
|
674
655
|
const response = await fetch(url, {
|
|
@@ -46,8 +46,8 @@ var CONFIG = {
|
|
|
46
46
|
apiUrl: "https://dev.api.symbols.app",
|
|
47
47
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
48
48
|
typesenseCollectionName: "docs",
|
|
49
|
-
typesenseApiKey: "
|
|
50
|
-
typesenseHost: "
|
|
49
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
50
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
51
51
|
typesensePort: "443",
|
|
52
52
|
typesenseProtocol: "https"
|
|
53
53
|
},
|
|
@@ -59,22 +59,18 @@ var CONFIG = {
|
|
|
59
59
|
basedOrg: "symbols",
|
|
60
60
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
61
61
|
typesenseCollectionName: "docs",
|
|
62
|
-
typesenseApiKey: "
|
|
63
|
-
typesenseHost: "
|
|
62
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
63
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
64
64
|
typesensePort: "443",
|
|
65
65
|
typesenseProtocol: "https"
|
|
66
66
|
},
|
|
67
67
|
upcoming: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
// cloning from dev
|
|
72
|
-
socketUrl: "https://dev.api.symbols.app",
|
|
73
|
-
apiUrl: "https://dev.api.symbols.app",
|
|
74
|
-
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
68
|
+
socketUrl: "https://upcoming.api.symbols.app",
|
|
69
|
+
apiUrl: "https://upcoming.api.symbols.app",
|
|
70
|
+
githubClientId: "Ov23liWF7NvdZ056RV5J",
|
|
75
71
|
typesenseCollectionName: "docs",
|
|
76
|
-
typesenseApiKey: "
|
|
77
|
-
typesenseHost: "
|
|
72
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
73
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
78
74
|
typesensePort: "443",
|
|
79
75
|
typesenseProtocol: "https"
|
|
80
76
|
},
|
|
@@ -86,8 +82,8 @@ var CONFIG = {
|
|
|
86
82
|
basedOrg: "symbols",
|
|
87
83
|
githubClientId: "Ov23ligwZDQVD0VfuWNa",
|
|
88
84
|
typesenseCollectionName: "docs",
|
|
89
|
-
typesenseApiKey: "
|
|
90
|
-
typesenseHost: "
|
|
85
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
86
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
91
87
|
typesensePort: "443",
|
|
92
88
|
typesenseProtocol: "https"
|
|
93
89
|
},
|
|
@@ -99,8 +95,8 @@ var CONFIG = {
|
|
|
99
95
|
basedOrg: "symbols",
|
|
100
96
|
githubClientId: "Ov23liFAlOEIXtX3dBtR",
|
|
101
97
|
typesenseCollectionName: "docs",
|
|
102
|
-
typesenseApiKey: "
|
|
103
|
-
typesenseHost: "
|
|
98
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
99
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
104
100
|
typesensePort: "443",
|
|
105
101
|
typesenseProtocol: "https"
|
|
106
102
|
}
|
|
@@ -585,20 +581,10 @@ var BaseService = class {
|
|
|
585
581
|
}
|
|
586
582
|
this._tokenManager = getTokenManager({
|
|
587
583
|
apiUrl: this._apiUrl,
|
|
588
|
-
onTokenRefresh: (tokens) => {
|
|
589
|
-
this.updateContext({ authToken: tokens.accessToken });
|
|
590
|
-
},
|
|
591
|
-
onTokenExpired: () => {
|
|
592
|
-
this.updateContext({ authToken: null });
|
|
593
|
-
},
|
|
594
584
|
onTokenError: (error) => {
|
|
595
585
|
console.error("Token management error:", error);
|
|
596
586
|
}
|
|
597
587
|
});
|
|
598
|
-
const { authToken } = this._context;
|
|
599
|
-
if (authToken && !this._tokenManager.hasTokens()) {
|
|
600
|
-
this._tokenManager.setTokens({ access_token: authToken });
|
|
601
|
-
}
|
|
602
588
|
this._setReady();
|
|
603
589
|
} catch (error) {
|
|
604
590
|
this._setError(error);
|
|
@@ -664,11 +650,6 @@ var BaseService = class {
|
|
|
664
650
|
error
|
|
665
651
|
);
|
|
666
652
|
}
|
|
667
|
-
} else if (this._requiresInit(options.methodName)) {
|
|
668
|
-
const { authToken } = this._context;
|
|
669
|
-
if (authToken) {
|
|
670
|
-
defaultHeaders.Authorization = `Bearer ${authToken}`;
|
|
671
|
-
}
|
|
672
653
|
}
|
|
673
654
|
try {
|
|
674
655
|
const response = await fetch(url, {
|
|
@@ -14104,8 +14104,8 @@ var CONFIG = {
|
|
|
14104
14104
|
apiUrl: "https://dev.api.symbols.app",
|
|
14105
14105
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
14106
14106
|
typesenseCollectionName: "docs",
|
|
14107
|
-
typesenseApiKey: "
|
|
14108
|
-
typesenseHost: "
|
|
14107
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
14108
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
14109
14109
|
typesensePort: "443",
|
|
14110
14110
|
typesenseProtocol: "https"
|
|
14111
14111
|
},
|
|
@@ -14117,22 +14117,18 @@ var CONFIG = {
|
|
|
14117
14117
|
basedOrg: "symbols",
|
|
14118
14118
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
14119
14119
|
typesenseCollectionName: "docs",
|
|
14120
|
-
typesenseApiKey: "
|
|
14121
|
-
typesenseHost: "
|
|
14120
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
14121
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
14122
14122
|
typesensePort: "443",
|
|
14123
14123
|
typesenseProtocol: "https"
|
|
14124
14124
|
},
|
|
14125
14125
|
upcoming: {
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
// cloning from dev
|
|
14130
|
-
socketUrl: "https://dev.api.symbols.app",
|
|
14131
|
-
apiUrl: "https://dev.api.symbols.app",
|
|
14132
|
-
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
14126
|
+
socketUrl: "https://upcoming.api.symbols.app",
|
|
14127
|
+
apiUrl: "https://upcoming.api.symbols.app",
|
|
14128
|
+
githubClientId: "Ov23liWF7NvdZ056RV5J",
|
|
14133
14129
|
typesenseCollectionName: "docs",
|
|
14134
|
-
typesenseApiKey: "
|
|
14135
|
-
typesenseHost: "
|
|
14130
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
14131
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
14136
14132
|
typesensePort: "443",
|
|
14137
14133
|
typesenseProtocol: "https"
|
|
14138
14134
|
},
|
|
@@ -14144,8 +14140,8 @@ var CONFIG = {
|
|
|
14144
14140
|
basedOrg: "symbols",
|
|
14145
14141
|
githubClientId: "Ov23ligwZDQVD0VfuWNa",
|
|
14146
14142
|
typesenseCollectionName: "docs",
|
|
14147
|
-
typesenseApiKey: "
|
|
14148
|
-
typesenseHost: "
|
|
14143
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
14144
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
14149
14145
|
typesensePort: "443",
|
|
14150
14146
|
typesenseProtocol: "https"
|
|
14151
14147
|
},
|
|
@@ -14157,8 +14153,8 @@ var CONFIG = {
|
|
|
14157
14153
|
basedOrg: "symbols",
|
|
14158
14154
|
githubClientId: "Ov23liFAlOEIXtX3dBtR",
|
|
14159
14155
|
typesenseCollectionName: "docs",
|
|
14160
|
-
typesenseApiKey: "
|
|
14161
|
-
typesenseHost: "
|
|
14156
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
14157
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
14162
14158
|
typesensePort: "443",
|
|
14163
14159
|
typesenseProtocol: "https"
|
|
14164
14160
|
}
|
|
@@ -14643,20 +14639,10 @@ var BaseService = class {
|
|
|
14643
14639
|
}
|
|
14644
14640
|
this._tokenManager = getTokenManager({
|
|
14645
14641
|
apiUrl: this._apiUrl,
|
|
14646
|
-
onTokenRefresh: (tokens) => {
|
|
14647
|
-
this.updateContext({ authToken: tokens.accessToken });
|
|
14648
|
-
},
|
|
14649
|
-
onTokenExpired: () => {
|
|
14650
|
-
this.updateContext({ authToken: null });
|
|
14651
|
-
},
|
|
14652
14642
|
onTokenError: (error) => {
|
|
14653
14643
|
console.error("Token management error:", error);
|
|
14654
14644
|
}
|
|
14655
14645
|
});
|
|
14656
|
-
const { authToken } = this._context;
|
|
14657
|
-
if (authToken && !this._tokenManager.hasTokens()) {
|
|
14658
|
-
this._tokenManager.setTokens({ access_token: authToken });
|
|
14659
|
-
}
|
|
14660
14646
|
this._setReady();
|
|
14661
14647
|
} catch (error) {
|
|
14662
14648
|
this._setError(error);
|
|
@@ -14722,11 +14708,6 @@ var BaseService = class {
|
|
|
14722
14708
|
error
|
|
14723
14709
|
);
|
|
14724
14710
|
}
|
|
14725
|
-
} else if (this._requiresInit(options.methodName)) {
|
|
14726
|
-
const { authToken } = this._context;
|
|
14727
|
-
if (authToken) {
|
|
14728
|
-
defaultHeaders.Authorization = `Bearer ${authToken}`;
|
|
14729
|
-
}
|
|
14730
14711
|
}
|
|
14731
14712
|
try {
|
|
14732
14713
|
const response = await fetch(url2, {
|
|
@@ -24663,7 +24644,6 @@ var CollabService = class extends BaseService {
|
|
|
24663
24644
|
(_b2 = this._client.socket) == null ? void 0 : _b2.once("connect", resolve);
|
|
24664
24645
|
}
|
|
24665
24646
|
});
|
|
24666
|
-
console.log("[CollabService] socket connected");
|
|
24667
24647
|
(_b = this._client.socket) == null ? void 0 : _b.on("ops", ({ changes }) => {
|
|
24668
24648
|
console.log(`ops event`);
|
|
24669
24649
|
this._stateManager.applyChanges(changes, { fromSocket: true });
|
|
@@ -24693,9 +24673,7 @@ var CollabService = class extends BaseService {
|
|
|
24693
24673
|
this._pendingOps.length = 0;
|
|
24694
24674
|
}
|
|
24695
24675
|
this._connected = true;
|
|
24696
|
-
console.log("[CollabService] Connected to project:", projectId);
|
|
24697
24676
|
} catch (err) {
|
|
24698
|
-
console.error("[CollabService] Connection failed:", err);
|
|
24699
24677
|
throw err;
|
|
24700
24678
|
}
|
|
24701
24679
|
}
|
|
@@ -24944,7 +24922,9 @@ var CollabService = class extends BaseService {
|
|
|
24944
24922
|
title: "Failed to update item",
|
|
24945
24923
|
message: error.message
|
|
24946
24924
|
});
|
|
24947
|
-
throw new Error(`Failed to update item: ${error.message}`, {
|
|
24925
|
+
throw new Error(`Failed to update item: ${error.message}`, {
|
|
24926
|
+
cause: error
|
|
24927
|
+
});
|
|
24948
24928
|
}
|
|
24949
24929
|
}
|
|
24950
24930
|
deleteItem(type, key, opts = {}) {
|
|
@@ -24969,7 +24949,9 @@ var CollabService = class extends BaseService {
|
|
|
24969
24949
|
title: "Failed to delete item",
|
|
24970
24950
|
message: error.message
|
|
24971
24951
|
});
|
|
24972
|
-
throw new Error(`Failed to delete item: ${error.message}`, {
|
|
24952
|
+
throw new Error(`Failed to delete item: ${error.message}`, {
|
|
24953
|
+
cause: error
|
|
24954
|
+
});
|
|
24973
24955
|
}
|
|
24974
24956
|
}
|
|
24975
24957
|
/* ---------- socket event helpers ---------- */
|
|
@@ -46,8 +46,8 @@ var CONFIG = {
|
|
|
46
46
|
apiUrl: "https://dev.api.symbols.app",
|
|
47
47
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
48
48
|
typesenseCollectionName: "docs",
|
|
49
|
-
typesenseApiKey: "
|
|
50
|
-
typesenseHost: "
|
|
49
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
50
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
51
51
|
typesensePort: "443",
|
|
52
52
|
typesenseProtocol: "https"
|
|
53
53
|
},
|
|
@@ -59,22 +59,18 @@ var CONFIG = {
|
|
|
59
59
|
basedOrg: "symbols",
|
|
60
60
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
61
61
|
typesenseCollectionName: "docs",
|
|
62
|
-
typesenseApiKey: "
|
|
63
|
-
typesenseHost: "
|
|
62
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
63
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
64
64
|
typesensePort: "443",
|
|
65
65
|
typesenseProtocol: "https"
|
|
66
66
|
},
|
|
67
67
|
upcoming: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
// cloning from dev
|
|
72
|
-
socketUrl: "https://dev.api.symbols.app",
|
|
73
|
-
apiUrl: "https://dev.api.symbols.app",
|
|
74
|
-
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
68
|
+
socketUrl: "https://upcoming.api.symbols.app",
|
|
69
|
+
apiUrl: "https://upcoming.api.symbols.app",
|
|
70
|
+
githubClientId: "Ov23liWF7NvdZ056RV5J",
|
|
75
71
|
typesenseCollectionName: "docs",
|
|
76
|
-
typesenseApiKey: "
|
|
77
|
-
typesenseHost: "
|
|
72
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
73
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
78
74
|
typesensePort: "443",
|
|
79
75
|
typesenseProtocol: "https"
|
|
80
76
|
},
|
|
@@ -86,8 +82,8 @@ var CONFIG = {
|
|
|
86
82
|
basedOrg: "symbols",
|
|
87
83
|
githubClientId: "Ov23ligwZDQVD0VfuWNa",
|
|
88
84
|
typesenseCollectionName: "docs",
|
|
89
|
-
typesenseApiKey: "
|
|
90
|
-
typesenseHost: "
|
|
85
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
86
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
91
87
|
typesensePort: "443",
|
|
92
88
|
typesenseProtocol: "https"
|
|
93
89
|
},
|
|
@@ -99,8 +95,8 @@ var CONFIG = {
|
|
|
99
95
|
basedOrg: "symbols",
|
|
100
96
|
githubClientId: "Ov23liFAlOEIXtX3dBtR",
|
|
101
97
|
typesenseCollectionName: "docs",
|
|
102
|
-
typesenseApiKey: "
|
|
103
|
-
typesenseHost: "
|
|
98
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
99
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
104
100
|
typesensePort: "443",
|
|
105
101
|
typesenseProtocol: "https"
|
|
106
102
|
}
|
|
@@ -585,20 +581,10 @@ var BaseService = class {
|
|
|
585
581
|
}
|
|
586
582
|
this._tokenManager = getTokenManager({
|
|
587
583
|
apiUrl: this._apiUrl,
|
|
588
|
-
onTokenRefresh: (tokens) => {
|
|
589
|
-
this.updateContext({ authToken: tokens.accessToken });
|
|
590
|
-
},
|
|
591
|
-
onTokenExpired: () => {
|
|
592
|
-
this.updateContext({ authToken: null });
|
|
593
|
-
},
|
|
594
584
|
onTokenError: (error) => {
|
|
595
585
|
console.error("Token management error:", error);
|
|
596
586
|
}
|
|
597
587
|
});
|
|
598
|
-
const { authToken } = this._context;
|
|
599
|
-
if (authToken && !this._tokenManager.hasTokens()) {
|
|
600
|
-
this._tokenManager.setTokens({ access_token: authToken });
|
|
601
|
-
}
|
|
602
588
|
this._setReady();
|
|
603
589
|
} catch (error) {
|
|
604
590
|
this._setError(error);
|
|
@@ -664,11 +650,6 @@ var BaseService = class {
|
|
|
664
650
|
error
|
|
665
651
|
);
|
|
666
652
|
}
|
|
667
|
-
} else if (this._requiresInit(options.methodName)) {
|
|
668
|
-
const { authToken } = this._context;
|
|
669
|
-
if (authToken) {
|
|
670
|
-
defaultHeaders.Authorization = `Bearer ${authToken}`;
|
|
671
|
-
}
|
|
672
653
|
}
|
|
673
654
|
try {
|
|
674
655
|
const response = await fetch(url, {
|
|
@@ -46,8 +46,8 @@ var CONFIG = {
|
|
|
46
46
|
apiUrl: "https://dev.api.symbols.app",
|
|
47
47
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
48
48
|
typesenseCollectionName: "docs",
|
|
49
|
-
typesenseApiKey: "
|
|
50
|
-
typesenseHost: "
|
|
49
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
50
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
51
51
|
typesensePort: "443",
|
|
52
52
|
typesenseProtocol: "https"
|
|
53
53
|
},
|
|
@@ -59,22 +59,18 @@ var CONFIG = {
|
|
|
59
59
|
basedOrg: "symbols",
|
|
60
60
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
61
61
|
typesenseCollectionName: "docs",
|
|
62
|
-
typesenseApiKey: "
|
|
63
|
-
typesenseHost: "
|
|
62
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
63
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
64
64
|
typesensePort: "443",
|
|
65
65
|
typesenseProtocol: "https"
|
|
66
66
|
},
|
|
67
67
|
upcoming: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
// cloning from dev
|
|
72
|
-
socketUrl: "https://dev.api.symbols.app",
|
|
73
|
-
apiUrl: "https://dev.api.symbols.app",
|
|
74
|
-
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
68
|
+
socketUrl: "https://upcoming.api.symbols.app",
|
|
69
|
+
apiUrl: "https://upcoming.api.symbols.app",
|
|
70
|
+
githubClientId: "Ov23liWF7NvdZ056RV5J",
|
|
75
71
|
typesenseCollectionName: "docs",
|
|
76
|
-
typesenseApiKey: "
|
|
77
|
-
typesenseHost: "
|
|
72
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
73
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
78
74
|
typesensePort: "443",
|
|
79
75
|
typesenseProtocol: "https"
|
|
80
76
|
},
|
|
@@ -86,8 +82,8 @@ var CONFIG = {
|
|
|
86
82
|
basedOrg: "symbols",
|
|
87
83
|
githubClientId: "Ov23ligwZDQVD0VfuWNa",
|
|
88
84
|
typesenseCollectionName: "docs",
|
|
89
|
-
typesenseApiKey: "
|
|
90
|
-
typesenseHost: "
|
|
85
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
86
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
91
87
|
typesensePort: "443",
|
|
92
88
|
typesenseProtocol: "https"
|
|
93
89
|
},
|
|
@@ -99,8 +95,8 @@ var CONFIG = {
|
|
|
99
95
|
basedOrg: "symbols",
|
|
100
96
|
githubClientId: "Ov23liFAlOEIXtX3dBtR",
|
|
101
97
|
typesenseCollectionName: "docs",
|
|
102
|
-
typesenseApiKey: "
|
|
103
|
-
typesenseHost: "
|
|
98
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
99
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
104
100
|
typesensePort: "443",
|
|
105
101
|
typesenseProtocol: "https"
|
|
106
102
|
}
|
|
@@ -585,20 +581,10 @@ var BaseService = class {
|
|
|
585
581
|
}
|
|
586
582
|
this._tokenManager = getTokenManager({
|
|
587
583
|
apiUrl: this._apiUrl,
|
|
588
|
-
onTokenRefresh: (tokens) => {
|
|
589
|
-
this.updateContext({ authToken: tokens.accessToken });
|
|
590
|
-
},
|
|
591
|
-
onTokenExpired: () => {
|
|
592
|
-
this.updateContext({ authToken: null });
|
|
593
|
-
},
|
|
594
584
|
onTokenError: (error) => {
|
|
595
585
|
console.error("Token management error:", error);
|
|
596
586
|
}
|
|
597
587
|
});
|
|
598
|
-
const { authToken } = this._context;
|
|
599
|
-
if (authToken && !this._tokenManager.hasTokens()) {
|
|
600
|
-
this._tokenManager.setTokens({ access_token: authToken });
|
|
601
|
-
}
|
|
602
588
|
this._setReady();
|
|
603
589
|
} catch (error) {
|
|
604
590
|
this._setError(error);
|
|
@@ -664,11 +650,6 @@ var BaseService = class {
|
|
|
664
650
|
error
|
|
665
651
|
);
|
|
666
652
|
}
|
|
667
|
-
} else if (this._requiresInit(options.methodName)) {
|
|
668
|
-
const { authToken } = this._context;
|
|
669
|
-
if (authToken) {
|
|
670
|
-
defaultHeaders.Authorization = `Bearer ${authToken}`;
|
|
671
|
-
}
|
|
672
653
|
}
|
|
673
654
|
try {
|
|
674
655
|
const response = await fetch(url, {
|
|
@@ -46,8 +46,8 @@ var CONFIG = {
|
|
|
46
46
|
apiUrl: "https://dev.api.symbols.app",
|
|
47
47
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
48
48
|
typesenseCollectionName: "docs",
|
|
49
|
-
typesenseApiKey: "
|
|
50
|
-
typesenseHost: "
|
|
49
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
50
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
51
51
|
typesensePort: "443",
|
|
52
52
|
typesenseProtocol: "https"
|
|
53
53
|
},
|
|
@@ -59,22 +59,18 @@ var CONFIG = {
|
|
|
59
59
|
basedOrg: "symbols",
|
|
60
60
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
61
61
|
typesenseCollectionName: "docs",
|
|
62
|
-
typesenseApiKey: "
|
|
63
|
-
typesenseHost: "
|
|
62
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
63
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
64
64
|
typesensePort: "443",
|
|
65
65
|
typesenseProtocol: "https"
|
|
66
66
|
},
|
|
67
67
|
upcoming: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
// cloning from dev
|
|
72
|
-
socketUrl: "https://dev.api.symbols.app",
|
|
73
|
-
apiUrl: "https://dev.api.symbols.app",
|
|
74
|
-
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
68
|
+
socketUrl: "https://upcoming.api.symbols.app",
|
|
69
|
+
apiUrl: "https://upcoming.api.symbols.app",
|
|
70
|
+
githubClientId: "Ov23liWF7NvdZ056RV5J",
|
|
75
71
|
typesenseCollectionName: "docs",
|
|
76
|
-
typesenseApiKey: "
|
|
77
|
-
typesenseHost: "
|
|
72
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
73
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
78
74
|
typesensePort: "443",
|
|
79
75
|
typesenseProtocol: "https"
|
|
80
76
|
},
|
|
@@ -86,8 +82,8 @@ var CONFIG = {
|
|
|
86
82
|
basedOrg: "symbols",
|
|
87
83
|
githubClientId: "Ov23ligwZDQVD0VfuWNa",
|
|
88
84
|
typesenseCollectionName: "docs",
|
|
89
|
-
typesenseApiKey: "
|
|
90
|
-
typesenseHost: "
|
|
85
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
86
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
91
87
|
typesensePort: "443",
|
|
92
88
|
typesenseProtocol: "https"
|
|
93
89
|
},
|
|
@@ -99,8 +95,8 @@ var CONFIG = {
|
|
|
99
95
|
basedOrg: "symbols",
|
|
100
96
|
githubClientId: "Ov23liFAlOEIXtX3dBtR",
|
|
101
97
|
typesenseCollectionName: "docs",
|
|
102
|
-
typesenseApiKey: "
|
|
103
|
-
typesenseHost: "
|
|
98
|
+
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
99
|
+
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
104
100
|
typesensePort: "443",
|
|
105
101
|
typesenseProtocol: "https"
|
|
106
102
|
}
|
|
@@ -585,20 +581,10 @@ var BaseService = class {
|
|
|
585
581
|
}
|
|
586
582
|
this._tokenManager = getTokenManager({
|
|
587
583
|
apiUrl: this._apiUrl,
|
|
588
|
-
onTokenRefresh: (tokens) => {
|
|
589
|
-
this.updateContext({ authToken: tokens.accessToken });
|
|
590
|
-
},
|
|
591
|
-
onTokenExpired: () => {
|
|
592
|
-
this.updateContext({ authToken: null });
|
|
593
|
-
},
|
|
594
584
|
onTokenError: (error) => {
|
|
595
585
|
console.error("Token management error:", error);
|
|
596
586
|
}
|
|
597
587
|
});
|
|
598
|
-
const { authToken } = this._context;
|
|
599
|
-
if (authToken && !this._tokenManager.hasTokens()) {
|
|
600
|
-
this._tokenManager.setTokens({ access_token: authToken });
|
|
601
|
-
}
|
|
602
588
|
this._setReady();
|
|
603
589
|
} catch (error) {
|
|
604
590
|
this._setError(error);
|
|
@@ -664,11 +650,6 @@ var BaseService = class {
|
|
|
664
650
|
error
|
|
665
651
|
);
|
|
666
652
|
}
|
|
667
|
-
} else if (this._requiresInit(options.methodName)) {
|
|
668
|
-
const { authToken } = this._context;
|
|
669
|
-
if (authToken) {
|
|
670
|
-
defaultHeaders.Authorization = `Bearer ${authToken}`;
|
|
671
|
-
}
|
|
672
653
|
}
|
|
673
654
|
try {
|
|
674
655
|
const response = await fetch(url, {
|