@xyo-network/api 2.73.4 → 2.74.1
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/Api/Api.d.mts +12 -0
- package/dist/Api/Api.d.mts.map +1 -0
- package/dist/Api/Api.d.ts +12 -0
- package/dist/Api/Api.d.ts.map +1 -0
- package/dist/Api/index.d.mts +2 -0
- package/dist/Api/index.d.mts.map +1 -0
- package/dist/Api/index.d.ts +2 -0
- package/dist/Api/index.d.ts.map +1 -0
- package/dist/Base.d.mts +32 -0
- package/dist/Base.d.mts.map +1 -0
- package/dist/Base.d.ts +32 -0
- package/dist/Base.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/LocationDivinerApi.d.mts +12 -0
- package/dist/Diviner/LocationDiviner/LocationDivinerApi.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/LocationDivinerApi.d.ts +12 -0
- package/dist/Diviner/LocationDiviner/LocationDivinerApi.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts +10 -0
- package/dist/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts +10 -0
- package/dist/Diviner/LocationDiviner/LocationDivinerApiResponseTransformer.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts +5 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +5 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts +12 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +12 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts +3 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +3 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts +12 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +12 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts +2 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +2 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts +18 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +18 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts +5 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +5 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts +6 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +6 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts +8 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +8 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts +12 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +12 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts +3 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +3 -0
- package/dist/Diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/index.d.mts +7 -0
- package/dist/Diviner/LocationDiviner/Queries/index.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Queries/index.d.ts +7 -0
- package/dist/Diviner/LocationDiviner/Queries/index.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts +13 -0
- package/dist/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +13 -0
- package/dist/Diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts +21 -0
- package/dist/Diviner/LocationDiviner/Witnesses/LocationWitness.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +21 -0
- package/dist/Diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/Witnesses/index.d.mts +3 -0
- package/dist/Diviner/LocationDiviner/Witnesses/index.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/Witnesses/index.d.ts +3 -0
- package/dist/Diviner/LocationDiviner/Witnesses/index.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/index.d.mts +5 -0
- package/dist/Diviner/LocationDiviner/index.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/index.d.ts +5 -0
- package/dist/Diviner/LocationDiviner/index.d.ts.map +1 -0
- package/dist/Diviner/LocationDiviner/models.d.mts +5 -0
- package/dist/Diviner/LocationDiviner/models.d.mts.map +1 -0
- package/dist/Diviner/LocationDiviner/models.d.ts +5 -0
- package/dist/Diviner/LocationDiviner/models.d.ts.map +1 -0
- package/dist/Diviner/RemoteDivinerConfig.d.mts +11 -0
- package/dist/Diviner/RemoteDivinerConfig.d.mts.map +1 -0
- package/dist/Diviner/RemoteDivinerConfig.d.ts +11 -0
- package/dist/Diviner/RemoteDivinerConfig.d.ts.map +1 -0
- package/dist/Diviner/RemoteDivinerError.d.mts +6 -0
- package/dist/Diviner/RemoteDivinerError.d.mts.map +1 -0
- package/dist/Diviner/RemoteDivinerError.d.ts +6 -0
- package/dist/Diviner/RemoteDivinerError.d.ts.map +1 -0
- package/dist/Diviner/index.d.mts +3 -0
- package/dist/Diviner/index.d.mts.map +1 -0
- package/dist/Diviner/index.d.ts +3 -0
- package/dist/Diviner/index.d.ts.map +1 -0
- package/dist/Simple.d.mts +22 -0
- package/dist/Simple.d.mts.map +1 -0
- package/dist/Simple.d.ts +22 -0
- package/dist/Simple.d.ts.map +1 -0
- package/dist/Test/index.d.mts +3 -0
- package/dist/Test/index.d.mts.map +1 -0
- package/dist/Test/index.d.ts +3 -0
- package/dist/Test/index.d.ts.map +1 -0
- package/dist/Test/testBoundWitness.d.mts +4 -0
- package/dist/Test/testBoundWitness.d.mts.map +1 -0
- package/dist/Test/testBoundWitness.d.ts +4 -0
- package/dist/Test/testBoundWitness.d.ts.map +1 -0
- package/dist/Test/testPayload.d.mts +6 -0
- package/dist/Test/testPayload.d.mts.map +1 -0
- package/dist/Test/testPayload.d.ts +6 -0
- package/dist/Test/testPayload.d.ts.map +1 -0
- package/dist/WithArchive.d.mts +4 -0
- package/dist/WithArchive.d.mts.map +1 -0
- package/dist/WithArchive.d.ts +4 -0
- package/dist/WithArchive.d.ts.map +1 -0
- package/dist/docs.json +1227 -1664
- package/dist/index.d.mts +7 -192
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +7 -192
- package/dist/index.d.ts.map +1 -0
- package/dist/models/ArchivePath.d.mts +4 -0
- package/dist/models/ArchivePath.d.mts.map +1 -0
- package/dist/models/ArchivePath.d.ts +4 -0
- package/dist/models/ArchivePath.d.ts.map +1 -0
- package/dist/models/index.d.mts +2 -0
- package/dist/models/index.d.mts.map +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/objToQuery.d.mts +2 -0
- package/dist/objToQuery.d.mts.map +1 -0
- package/dist/objToQuery.d.ts +2 -0
- package/dist/objToQuery.d.ts.map +1 -0
- package/package.json +12 -18
- package/tsup.config.ts +0 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,192 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
declare class ApiBase<C extends ApiConfig = ApiConfig> implements ApiReportable {
|
|
9
|
-
readonly config: C;
|
|
10
|
-
protected axios: AxiosJson;
|
|
11
|
-
constructor(config: C);
|
|
12
|
-
get authenticated(): boolean;
|
|
13
|
-
protected get headers(): Record<string, string>;
|
|
14
|
-
protected get query(): string;
|
|
15
|
-
protected get root(): string;
|
|
16
|
-
private static resolveResponse;
|
|
17
|
-
private static shapeResponse;
|
|
18
|
-
onError(error: ApiError, depth?: number): void;
|
|
19
|
-
onFailure(response: ApiResponse, depth?: number): void;
|
|
20
|
-
onSuccess(response: ApiResponse, depth?: number): void;
|
|
21
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string): Promise<ApiResponseBody<T>>;
|
|
22
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
23
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
24
|
-
protected getEndpoint<T = unknown>(endPoint?: string): Promise<ApiResponseBody<T>>;
|
|
25
|
-
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
26
|
-
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
27
|
-
protected handleMonitorResponseError<T>(error: ApiError, trapAxiosException: boolean): ApiResponse<ApiEnvelope<T>> | undefined;
|
|
28
|
-
protected monitorResponse<T>(closure: () => Promise<ApiResponse<ApiEnvelope<T>>>): Promise<ApiResponse<ApiEnvelope<T>> | undefined>;
|
|
29
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<ApiResponseBody<T>>;
|
|
30
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
31
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
32
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<ApiResponseBody<T>>;
|
|
33
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
34
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
35
|
-
private resolveRoot;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type ApiSimpleQuery = PayloadFindFilter;
|
|
39
|
-
declare class ApiSimple<T = Payload, D = T, Q extends ApiSimpleQuery = ApiSimpleQuery, C extends ApiConfig = ApiConfig> extends ApiBase<C> {
|
|
40
|
-
delete(): Promise<ApiResponseBody<T>>;
|
|
41
|
-
delete(responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
42
|
-
delete(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
43
|
-
find(query?: Q): Promise<ApiResponseBody<T>>;
|
|
44
|
-
find(query?: Q, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
45
|
-
find(query?: Q, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
46
|
-
get(): Promise<ApiResponseBody<T>>;
|
|
47
|
-
get(responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
48
|
-
get(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
49
|
-
post(data?: D): Promise<ApiResponseBody<T>>;
|
|
50
|
-
post(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
51
|
-
post(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
52
|
-
put(data?: D): Promise<ApiResponseBody<T>>;
|
|
53
|
-
put(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
54
|
-
put(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
declare class ArchivistApi<C extends ApiConfig = ApiConfig> extends ApiSimple<Payload[], C> {
|
|
58
|
-
huri(huri: Huri | string): ApiSimple<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
59
|
-
schema: string;
|
|
60
|
-
}, _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
61
|
-
schema: string;
|
|
62
|
-
}, _xyo_network_payload_model.PayloadFindFilter, ApiConfig>;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
interface GetLocationQueryResponse {
|
|
66
|
-
answerHash?: string;
|
|
67
|
-
queryHash: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface LocationHeatmapPointProperties {
|
|
71
|
-
hash: string;
|
|
72
|
-
value: number;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
type CurrentLocationWitnessSchema = 'co.coinapp.currentlocationwitness';
|
|
76
|
-
declare const CurrentLocationWitnessSchema: CurrentLocationWitnessSchema;
|
|
77
|
-
type CurrentLocationWitnessPayload = Payload<{
|
|
78
|
-
altitudeMeters: number;
|
|
79
|
-
directionDegrees: number;
|
|
80
|
-
latitude: number;
|
|
81
|
-
longitude: number;
|
|
82
|
-
quadkey: string;
|
|
83
|
-
schema: CurrentLocationWitnessSchema;
|
|
84
|
-
speedKph: number;
|
|
85
|
-
}>;
|
|
86
|
-
|
|
87
|
-
type LocationWitnessSchema = 'network.xyo.location';
|
|
88
|
-
declare const LocationWitnessSchema: LocationWitnessSchema;
|
|
89
|
-
interface Coordinates {
|
|
90
|
-
accuracy: number | null;
|
|
91
|
-
altitude: number | null;
|
|
92
|
-
altitudeAccuracy: number | null;
|
|
93
|
-
heading: number | null;
|
|
94
|
-
latitude: number;
|
|
95
|
-
longitude: number;
|
|
96
|
-
speed: number | null;
|
|
97
|
-
}
|
|
98
|
-
interface CurrentLocation {
|
|
99
|
-
coords: Coordinates;
|
|
100
|
-
timestamp: number;
|
|
101
|
-
}
|
|
102
|
-
type LocationWitnessPayload = Payload<{
|
|
103
|
-
currentLocation: CurrentLocation;
|
|
104
|
-
schema: LocationWitnessSchema;
|
|
105
|
-
}>;
|
|
106
|
-
|
|
107
|
-
type LocationHeatmapQuerySchema = 'network.xyo.location.heatmap.query';
|
|
108
|
-
declare const locationHeatmapQuerySchema: LocationHeatmapQuerySchema;
|
|
109
|
-
type LocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer';
|
|
110
|
-
declare const locationHeatmapAnswerSchema: LocationHeatmapAnswerSchema;
|
|
111
|
-
type LocationHeatmapQuery = {
|
|
112
|
-
schema: LocationWitnessSchema;
|
|
113
|
-
startTime?: string;
|
|
114
|
-
stopTime?: string;
|
|
115
|
-
};
|
|
116
|
-
declare const isLocationHeatmapQuery: (query: Record<string, unknown>) => query is LocationHeatmapQuery;
|
|
117
|
-
|
|
118
|
-
type LocationQuadkeyHeatmapQuerySchema = 'network.xyo.location.heatmap.quadkey.query';
|
|
119
|
-
declare const locationQuadkeyHeatmapQuerySchema: LocationQuadkeyHeatmapQuerySchema;
|
|
120
|
-
type LocationQuadkeyHeatmapAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer';
|
|
121
|
-
declare const locationQuadkeyHeatmapAnswerSchema: LocationQuadkeyHeatmapAnswerSchema;
|
|
122
|
-
type LocationQuadkeyHeatmapQuery = {
|
|
123
|
-
schema: LocationWitnessSchema;
|
|
124
|
-
startTime?: string;
|
|
125
|
-
stopTime?: string;
|
|
126
|
-
};
|
|
127
|
-
declare const isLocationQuadkeyHeatmapQuery: (query: Record<string, unknown>) => query is LocationQuadkeyHeatmapQuery;
|
|
128
|
-
|
|
129
|
-
interface LocationTimeRangePointProperties {
|
|
130
|
-
_archive: string;
|
|
131
|
-
_client: string;
|
|
132
|
-
_timestamp: number;
|
|
133
|
-
schema: LocationWitnessSchema;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
type LocationTimeRangeQuerySchema = 'network.xyo.location.range.query';
|
|
137
|
-
declare const LocationTimeRangeQuerySchema: LocationTimeRangeQuerySchema;
|
|
138
|
-
type LocationTimeRangeAnswerSchema = 'network.xyo.location.range.answer';
|
|
139
|
-
declare const LocationTimeRangeAnswerSchema: LocationTimeRangeAnswerSchema;
|
|
140
|
-
type LocationTimeRangeQuery = {
|
|
141
|
-
schema: LocationWitnessSchema;
|
|
142
|
-
startTime?: string;
|
|
143
|
-
stopTime?: string;
|
|
144
|
-
};
|
|
145
|
-
declare const isLocationTimeRangeQuery: (query: Record<string, unknown>) => query is LocationTimeRangeQuery;
|
|
146
|
-
|
|
147
|
-
type LocationQuerySchema = LocationQuadkeyHeatmapQuerySchema | LocationHeatmapQuerySchema | LocationTimeRangeQuerySchema;
|
|
148
|
-
declare const isSupportedLocationQuerySchema: (schema: string) => schema is LocationQuerySchema;
|
|
149
|
-
|
|
150
|
-
interface LocationQueryCreationRequest<TSchema extends LocationQuerySchema = LocationQuerySchema, TQuery extends Record<string, unknown> = Record<string, unknown>> {
|
|
151
|
-
query: TQuery;
|
|
152
|
-
resultArchive: string;
|
|
153
|
-
resultArchivist: ApiConfig;
|
|
154
|
-
schema: TSchema;
|
|
155
|
-
sourceArchive: string;
|
|
156
|
-
sourceArchivist: ApiConfig;
|
|
157
|
-
}
|
|
158
|
-
type LocationTimeRangeQueryCreationRequest = LocationQueryCreationRequest<LocationTimeRangeQuerySchema, LocationTimeRangeQuery>;
|
|
159
|
-
type LocationHeatmapQueryCreationRequest = LocationQueryCreationRequest<LocationHeatmapQuerySchema, LocationHeatmapQuery>;
|
|
160
|
-
type LocationQuadkeyHeatmapQueryCreationRequest = LocationQueryCreationRequest<LocationQuadkeyHeatmapQuerySchema, LocationQuadkeyHeatmapQuery>;
|
|
161
|
-
type SupportedLocationQueryCreationRequest = LocationTimeRangeQueryCreationRequest | LocationHeatmapQueryCreationRequest | LocationQuadkeyHeatmapQueryCreationRequest;
|
|
162
|
-
|
|
163
|
-
interface LocationQueryCreationResponse extends LocationQueryCreationRequest {
|
|
164
|
-
hash: string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
declare class LocationDivinerApi {
|
|
168
|
-
config: ApiConfig;
|
|
169
|
-
constructor(config: ApiConfig);
|
|
170
|
-
private get axiosRequestConfig();
|
|
171
|
-
getLocationQuery(hash: string): Promise<GetLocationQueryResponse>;
|
|
172
|
-
postLocationQuery(request: SupportedLocationQueryCreationRequest): Promise<LocationQueryCreationResponse>;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
type RemoteDivinerConfigSchema = 'network.xyo.diviner.remote.config';
|
|
176
|
-
declare const RemoteDivinerConfigSchema: RemoteDivinerConfigSchema;
|
|
177
|
-
type RemoteDivinerConfig = DivinerConfig & {
|
|
178
|
-
/** @deprecated use in params instead */
|
|
179
|
-
api?: ArchivistApi;
|
|
180
|
-
archive?: string;
|
|
181
|
-
schema: RemoteDivinerConfigSchema;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
interface ArchivePath {
|
|
185
|
-
archive: string;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
declare type WithArchive<ArchivistApiConfig> = ArchivistApiConfig & {
|
|
189
|
-
_archive?: string;
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
export { ApiBase, ApiSimple, ApiSimpleQuery, ArchivePath, ArchivistApi, Coordinates, CurrentLocation, CurrentLocationWitnessPayload, CurrentLocationWitnessSchema, GetLocationQueryResponse, LocationDivinerApi, LocationHeatmapAnswerSchema, LocationHeatmapPointProperties, LocationHeatmapQuery, LocationHeatmapQueryCreationRequest, LocationHeatmapQuerySchema, LocationQuadkeyHeatmapAnswerSchema, LocationQuadkeyHeatmapQuery, LocationQuadkeyHeatmapQueryCreationRequest, LocationQuadkeyHeatmapQuerySchema, LocationQueryCreationRequest, LocationQueryCreationResponse, LocationQuerySchema, LocationTimeRangeAnswerSchema, LocationTimeRangePointProperties, LocationTimeRangeQuery, LocationTimeRangeQueryCreationRequest, LocationTimeRangeQuerySchema, LocationWitnessPayload, LocationWitnessSchema, RemoteDivinerConfig, RemoteDivinerConfigSchema, SupportedLocationQueryCreationRequest, WithArchive, isLocationHeatmapQuery, isLocationQuadkeyHeatmapQuery, isLocationTimeRangeQuery, isSupportedLocationQuerySchema, locationHeatmapAnswerSchema, locationHeatmapQuerySchema, locationQuadkeyHeatmapAnswerSchema, locationQuadkeyHeatmapQuerySchema };
|
|
1
|
+
export * from './Api';
|
|
2
|
+
export * from './Base';
|
|
3
|
+
export * from './Diviner';
|
|
4
|
+
export * from './models';
|
|
5
|
+
export * from './Simple';
|
|
6
|
+
export * from './WithArchive';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,192 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
declare class ApiBase<C extends ApiConfig = ApiConfig> implements ApiReportable {
|
|
9
|
-
readonly config: C;
|
|
10
|
-
protected axios: AxiosJson;
|
|
11
|
-
constructor(config: C);
|
|
12
|
-
get authenticated(): boolean;
|
|
13
|
-
protected get headers(): Record<string, string>;
|
|
14
|
-
protected get query(): string;
|
|
15
|
-
protected get root(): string;
|
|
16
|
-
private static resolveResponse;
|
|
17
|
-
private static shapeResponse;
|
|
18
|
-
onError(error: ApiError, depth?: number): void;
|
|
19
|
-
onFailure(response: ApiResponse, depth?: number): void;
|
|
20
|
-
onSuccess(response: ApiResponse, depth?: number): void;
|
|
21
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string): Promise<ApiResponseBody<T>>;
|
|
22
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
23
|
-
protected deleteEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
24
|
-
protected getEndpoint<T = unknown>(endPoint?: string): Promise<ApiResponseBody<T>>;
|
|
25
|
-
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
26
|
-
protected getEndpoint<T = unknown>(endPoint?: string, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
27
|
-
protected handleMonitorResponseError<T>(error: ApiError, trapAxiosException: boolean): ApiResponse<ApiEnvelope<T>> | undefined;
|
|
28
|
-
protected monitorResponse<T>(closure: () => Promise<ApiResponse<ApiEnvelope<T>>>): Promise<ApiResponse<ApiEnvelope<T>> | undefined>;
|
|
29
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<ApiResponseBody<T>>;
|
|
30
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
31
|
-
protected postEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
32
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D): Promise<ApiResponseBody<T>>;
|
|
33
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
34
|
-
protected putEndpoint<T = unknown, D = unknown>(endPoint?: string, data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
35
|
-
private resolveRoot;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type ApiSimpleQuery = PayloadFindFilter;
|
|
39
|
-
declare class ApiSimple<T = Payload, D = T, Q extends ApiSimpleQuery = ApiSimpleQuery, C extends ApiConfig = ApiConfig> extends ApiBase<C> {
|
|
40
|
-
delete(): Promise<ApiResponseBody<T>>;
|
|
41
|
-
delete(responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
42
|
-
delete(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
43
|
-
find(query?: Q): Promise<ApiResponseBody<T>>;
|
|
44
|
-
find(query?: Q, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
45
|
-
find(query?: Q, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
46
|
-
get(): Promise<ApiResponseBody<T>>;
|
|
47
|
-
get(responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
48
|
-
get(responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
49
|
-
post(data?: D): Promise<ApiResponseBody<T>>;
|
|
50
|
-
post(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
51
|
-
post(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
52
|
-
put(data?: D): Promise<ApiResponseBody<T>>;
|
|
53
|
-
put(data?: D, responseType?: 'body'): Promise<ApiResponseBody<T>>;
|
|
54
|
-
put(data?: D, responseType?: 'tuple'): Promise<ApiResponseTuple<T>>;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
declare class ArchivistApi<C extends ApiConfig = ApiConfig> extends ApiSimple<Payload[], C> {
|
|
58
|
-
huri(huri: Huri | string): ApiSimple<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
59
|
-
schema: string;
|
|
60
|
-
}, _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
61
|
-
schema: string;
|
|
62
|
-
}, _xyo_network_payload_model.PayloadFindFilter, ApiConfig>;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
interface GetLocationQueryResponse {
|
|
66
|
-
answerHash?: string;
|
|
67
|
-
queryHash: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface LocationHeatmapPointProperties {
|
|
71
|
-
hash: string;
|
|
72
|
-
value: number;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
type CurrentLocationWitnessSchema = 'co.coinapp.currentlocationwitness';
|
|
76
|
-
declare const CurrentLocationWitnessSchema: CurrentLocationWitnessSchema;
|
|
77
|
-
type CurrentLocationWitnessPayload = Payload<{
|
|
78
|
-
altitudeMeters: number;
|
|
79
|
-
directionDegrees: number;
|
|
80
|
-
latitude: number;
|
|
81
|
-
longitude: number;
|
|
82
|
-
quadkey: string;
|
|
83
|
-
schema: CurrentLocationWitnessSchema;
|
|
84
|
-
speedKph: number;
|
|
85
|
-
}>;
|
|
86
|
-
|
|
87
|
-
type LocationWitnessSchema = 'network.xyo.location';
|
|
88
|
-
declare const LocationWitnessSchema: LocationWitnessSchema;
|
|
89
|
-
interface Coordinates {
|
|
90
|
-
accuracy: number | null;
|
|
91
|
-
altitude: number | null;
|
|
92
|
-
altitudeAccuracy: number | null;
|
|
93
|
-
heading: number | null;
|
|
94
|
-
latitude: number;
|
|
95
|
-
longitude: number;
|
|
96
|
-
speed: number | null;
|
|
97
|
-
}
|
|
98
|
-
interface CurrentLocation {
|
|
99
|
-
coords: Coordinates;
|
|
100
|
-
timestamp: number;
|
|
101
|
-
}
|
|
102
|
-
type LocationWitnessPayload = Payload<{
|
|
103
|
-
currentLocation: CurrentLocation;
|
|
104
|
-
schema: LocationWitnessSchema;
|
|
105
|
-
}>;
|
|
106
|
-
|
|
107
|
-
type LocationHeatmapQuerySchema = 'network.xyo.location.heatmap.query';
|
|
108
|
-
declare const locationHeatmapQuerySchema: LocationHeatmapQuerySchema;
|
|
109
|
-
type LocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer';
|
|
110
|
-
declare const locationHeatmapAnswerSchema: LocationHeatmapAnswerSchema;
|
|
111
|
-
type LocationHeatmapQuery = {
|
|
112
|
-
schema: LocationWitnessSchema;
|
|
113
|
-
startTime?: string;
|
|
114
|
-
stopTime?: string;
|
|
115
|
-
};
|
|
116
|
-
declare const isLocationHeatmapQuery: (query: Record<string, unknown>) => query is LocationHeatmapQuery;
|
|
117
|
-
|
|
118
|
-
type LocationQuadkeyHeatmapQuerySchema = 'network.xyo.location.heatmap.quadkey.query';
|
|
119
|
-
declare const locationQuadkeyHeatmapQuerySchema: LocationQuadkeyHeatmapQuerySchema;
|
|
120
|
-
type LocationQuadkeyHeatmapAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer';
|
|
121
|
-
declare const locationQuadkeyHeatmapAnswerSchema: LocationQuadkeyHeatmapAnswerSchema;
|
|
122
|
-
type LocationQuadkeyHeatmapQuery = {
|
|
123
|
-
schema: LocationWitnessSchema;
|
|
124
|
-
startTime?: string;
|
|
125
|
-
stopTime?: string;
|
|
126
|
-
};
|
|
127
|
-
declare const isLocationQuadkeyHeatmapQuery: (query: Record<string, unknown>) => query is LocationQuadkeyHeatmapQuery;
|
|
128
|
-
|
|
129
|
-
interface LocationTimeRangePointProperties {
|
|
130
|
-
_archive: string;
|
|
131
|
-
_client: string;
|
|
132
|
-
_timestamp: number;
|
|
133
|
-
schema: LocationWitnessSchema;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
type LocationTimeRangeQuerySchema = 'network.xyo.location.range.query';
|
|
137
|
-
declare const LocationTimeRangeQuerySchema: LocationTimeRangeQuerySchema;
|
|
138
|
-
type LocationTimeRangeAnswerSchema = 'network.xyo.location.range.answer';
|
|
139
|
-
declare const LocationTimeRangeAnswerSchema: LocationTimeRangeAnswerSchema;
|
|
140
|
-
type LocationTimeRangeQuery = {
|
|
141
|
-
schema: LocationWitnessSchema;
|
|
142
|
-
startTime?: string;
|
|
143
|
-
stopTime?: string;
|
|
144
|
-
};
|
|
145
|
-
declare const isLocationTimeRangeQuery: (query: Record<string, unknown>) => query is LocationTimeRangeQuery;
|
|
146
|
-
|
|
147
|
-
type LocationQuerySchema = LocationQuadkeyHeatmapQuerySchema | LocationHeatmapQuerySchema | LocationTimeRangeQuerySchema;
|
|
148
|
-
declare const isSupportedLocationQuerySchema: (schema: string) => schema is LocationQuerySchema;
|
|
149
|
-
|
|
150
|
-
interface LocationQueryCreationRequest<TSchema extends LocationQuerySchema = LocationQuerySchema, TQuery extends Record<string, unknown> = Record<string, unknown>> {
|
|
151
|
-
query: TQuery;
|
|
152
|
-
resultArchive: string;
|
|
153
|
-
resultArchivist: ApiConfig;
|
|
154
|
-
schema: TSchema;
|
|
155
|
-
sourceArchive: string;
|
|
156
|
-
sourceArchivist: ApiConfig;
|
|
157
|
-
}
|
|
158
|
-
type LocationTimeRangeQueryCreationRequest = LocationQueryCreationRequest<LocationTimeRangeQuerySchema, LocationTimeRangeQuery>;
|
|
159
|
-
type LocationHeatmapQueryCreationRequest = LocationQueryCreationRequest<LocationHeatmapQuerySchema, LocationHeatmapQuery>;
|
|
160
|
-
type LocationQuadkeyHeatmapQueryCreationRequest = LocationQueryCreationRequest<LocationQuadkeyHeatmapQuerySchema, LocationQuadkeyHeatmapQuery>;
|
|
161
|
-
type SupportedLocationQueryCreationRequest = LocationTimeRangeQueryCreationRequest | LocationHeatmapQueryCreationRequest | LocationQuadkeyHeatmapQueryCreationRequest;
|
|
162
|
-
|
|
163
|
-
interface LocationQueryCreationResponse extends LocationQueryCreationRequest {
|
|
164
|
-
hash: string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
declare class LocationDivinerApi {
|
|
168
|
-
config: ApiConfig;
|
|
169
|
-
constructor(config: ApiConfig);
|
|
170
|
-
private get axiosRequestConfig();
|
|
171
|
-
getLocationQuery(hash: string): Promise<GetLocationQueryResponse>;
|
|
172
|
-
postLocationQuery(request: SupportedLocationQueryCreationRequest): Promise<LocationQueryCreationResponse>;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
type RemoteDivinerConfigSchema = 'network.xyo.diviner.remote.config';
|
|
176
|
-
declare const RemoteDivinerConfigSchema: RemoteDivinerConfigSchema;
|
|
177
|
-
type RemoteDivinerConfig = DivinerConfig & {
|
|
178
|
-
/** @deprecated use in params instead */
|
|
179
|
-
api?: ArchivistApi;
|
|
180
|
-
archive?: string;
|
|
181
|
-
schema: RemoteDivinerConfigSchema;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
interface ArchivePath {
|
|
185
|
-
archive: string;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
declare type WithArchive<ArchivistApiConfig> = ArchivistApiConfig & {
|
|
189
|
-
_archive?: string;
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
export { ApiBase, ApiSimple, ApiSimpleQuery, ArchivePath, ArchivistApi, Coordinates, CurrentLocation, CurrentLocationWitnessPayload, CurrentLocationWitnessSchema, GetLocationQueryResponse, LocationDivinerApi, LocationHeatmapAnswerSchema, LocationHeatmapPointProperties, LocationHeatmapQuery, LocationHeatmapQueryCreationRequest, LocationHeatmapQuerySchema, LocationQuadkeyHeatmapAnswerSchema, LocationQuadkeyHeatmapQuery, LocationQuadkeyHeatmapQueryCreationRequest, LocationQuadkeyHeatmapQuerySchema, LocationQueryCreationRequest, LocationQueryCreationResponse, LocationQuerySchema, LocationTimeRangeAnswerSchema, LocationTimeRangePointProperties, LocationTimeRangeQuery, LocationTimeRangeQueryCreationRequest, LocationTimeRangeQuerySchema, LocationWitnessPayload, LocationWitnessSchema, RemoteDivinerConfig, RemoteDivinerConfigSchema, SupportedLocationQueryCreationRequest, WithArchive, isLocationHeatmapQuery, isLocationQuadkeyHeatmapQuery, isLocationTimeRangeQuery, isSupportedLocationQuerySchema, locationHeatmapAnswerSchema, locationHeatmapQuerySchema, locationQuadkeyHeatmapAnswerSchema, locationQuadkeyHeatmapQuerySchema };
|
|
1
|
+
export * from './Api';
|
|
2
|
+
export * from './Base';
|
|
3
|
+
export * from './Diviner';
|
|
4
|
+
export * from './models';
|
|
5
|
+
export * from './Simple';
|
|
6
|
+
export * from './WithArchive';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchivePath.d.ts","sourceRoot":"","sources":["../../src/models/ArchivePath.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchivePath.d.ts","sourceRoot":"","sources":["../../src/models/ArchivePath.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objToQuery.d.ts","sourceRoot":"","sources":["../src/objToQuery.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QAAS,OAAO,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,WAO1E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objToQuery.d.ts","sourceRoot":"","sources":["../src/objToQuery.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QAAS,OAAO,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,WAO1E,CAAA"}
|
package/package.json
CHANGED
|
@@ -9,22 +9,20 @@
|
|
|
9
9
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@xyo-network/api-models": "~2.
|
|
13
|
-
"@xyo-network/axios": "~2.
|
|
14
|
-
"@xyo-network/boundwitness-model": "~2.
|
|
15
|
-
"@xyo-network/core": "~2.
|
|
16
|
-
"@xyo-network/diviner-model": "~2.
|
|
17
|
-
"@xyo-network/huri": "~2.
|
|
18
|
-
"@xyo-network/payload-model": "~2.
|
|
12
|
+
"@xyo-network/api-models": "~2.74.1",
|
|
13
|
+
"@xyo-network/axios": "~2.74.1",
|
|
14
|
+
"@xyo-network/boundwitness-model": "~2.74.1",
|
|
15
|
+
"@xyo-network/core": "~2.74.1",
|
|
16
|
+
"@xyo-network/diviner-model": "~2.74.1",
|
|
17
|
+
"@xyo-network/huri": "~2.74.1",
|
|
18
|
+
"@xyo-network/payload-model": "~2.74.1"
|
|
19
19
|
},
|
|
20
20
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@xylabs/jest-helpers": "^2.
|
|
23
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
24
|
-
"@xylabs/tsconfig": "^
|
|
25
|
-
"jest": "^29.
|
|
26
|
-
"publint": "^0.2.2",
|
|
27
|
-
"tsup": "^7.2.0",
|
|
22
|
+
"@xylabs/jest-helpers": "^2.11.6",
|
|
23
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.28",
|
|
24
|
+
"@xylabs/tsconfig": "^3.0.28",
|
|
25
|
+
"jest": "^29.7.0",
|
|
28
26
|
"typescript": "^5.2.2"
|
|
29
27
|
},
|
|
30
28
|
"docs": "dist/docs.json",
|
|
@@ -65,11 +63,7 @@
|
|
|
65
63
|
"type": "git",
|
|
66
64
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
67
65
|
},
|
|
68
|
-
"scripts": {
|
|
69
|
-
"package-compile": "tsup && publint",
|
|
70
|
-
"package-recompile": "tsup && publint"
|
|
71
|
-
},
|
|
72
66
|
"sideEffects": false,
|
|
73
67
|
"types": "dist/index.d.ts",
|
|
74
|
-
"version": "2.
|
|
68
|
+
"version": "2.74.1"
|
|
75
69
|
}
|
package/tsup.config.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line import/no-default-export
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
bundle: true,
|
|
6
|
-
cjsInterop: true,
|
|
7
|
-
clean: false,
|
|
8
|
-
dts: {
|
|
9
|
-
entry: ['src/index.ts'],
|
|
10
|
-
},
|
|
11
|
-
entry: ['src/index.ts'],
|
|
12
|
-
format: ['cjs', 'esm'],
|
|
13
|
-
sourcemap: true,
|
|
14
|
-
splitting: false,
|
|
15
|
-
tsconfig: 'tsconfig.json',
|
|
16
|
-
})
|