@decaf-ts/for-couchdb 0.10.0 → 0.12.0
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/lib/cjs/adapter.cjs +38 -32
- package/lib/cjs/adapter.cjs.map +1 -0
- package/lib/cjs/constants.cjs +1 -0
- package/lib/cjs/constants.cjs.map +1 -0
- package/lib/cjs/decorators.cjs +1 -0
- package/lib/cjs/decorators.cjs.map +1 -0
- package/lib/cjs/errors.cjs +1 -0
- package/lib/cjs/errors.cjs.map +1 -0
- package/lib/cjs/index.cjs +2 -1
- package/lib/cjs/index.cjs.map +1 -0
- package/lib/cjs/indexes/generator.cjs +17 -16
- package/lib/cjs/indexes/generator.cjs.map +1 -0
- package/lib/cjs/indexes/index.cjs +1 -0
- package/lib/cjs/indexes/index.cjs.map +1 -0
- package/lib/cjs/metadata.cjs +1 -0
- package/lib/cjs/metadata.cjs.map +1 -0
- package/lib/cjs/query/Paginator.cjs +1 -0
- package/lib/cjs/query/Paginator.cjs.map +1 -0
- package/lib/cjs/query/Statement.cjs +37 -36
- package/lib/cjs/query/Statement.cjs.map +1 -0
- package/lib/cjs/query/constants.cjs +1 -0
- package/lib/cjs/query/constants.cjs.map +1 -0
- package/lib/cjs/query/index.cjs +1 -0
- package/lib/cjs/query/index.cjs.map +1 -0
- package/lib/cjs/query/translate.cjs +3 -2
- package/lib/cjs/query/translate.cjs.map +1 -0
- package/lib/cjs/repository.cjs +8 -7
- package/lib/cjs/repository.cjs.map +1 -0
- package/lib/cjs/types.cjs +1 -0
- package/lib/cjs/types.cjs.map +1 -0
- package/lib/cjs/utils.cjs +9 -8
- package/lib/cjs/utils.cjs.map +1 -0
- package/lib/cjs/views/generator.cjs +9 -8
- package/lib/cjs/views/generator.cjs.map +1 -0
- package/lib/cjs/views/index.cjs +1 -0
- package/lib/cjs/views/index.cjs.map +1 -0
- package/lib/cjs/views/types.cjs +1 -0
- package/lib/cjs/views/types.cjs.map +1 -0
- package/lib/esm/index.js +1 -1
- package/lib/types/adapter.d.cts +296 -0
- package/lib/types/adapter.d.mts +296 -0
- package/lib/types/constants.d.cts +42 -0
- package/lib/types/constants.d.mts +42 -0
- package/lib/types/decorators.d.cts +8 -0
- package/lib/types/decorators.d.mts +8 -0
- package/lib/types/errors.d.cts +21 -0
- package/lib/types/errors.d.mts +21 -0
- package/lib/types/index.d.cts +28 -0
- package/lib/types/index.d.mts +28 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/indexes/generator.d.cts +51 -0
- package/lib/types/indexes/generator.d.mts +51 -0
- package/lib/types/indexes/index.d.cts +1 -0
- package/lib/types/indexes/index.d.mts +1 -0
- package/lib/types/metadata.d.cts +4 -0
- package/lib/types/metadata.d.mts +4 -0
- package/lib/types/query/Paginator.d.cts +105 -0
- package/lib/types/query/Paginator.d.mts +105 -0
- package/lib/types/query/Statement.d.cts +195 -0
- package/lib/types/query/Statement.d.mts +195 -0
- package/lib/types/query/constants.d.cts +47 -0
- package/lib/types/query/constants.d.mts +47 -0
- package/lib/types/query/index.d.cts +4 -0
- package/lib/types/query/index.d.mts +4 -0
- package/lib/types/query/translate.d.cts +34 -0
- package/lib/types/query/translate.d.mts +34 -0
- package/lib/types/repository.d.cts +39 -0
- package/lib/types/repository.d.mts +39 -0
- package/lib/types/types.d.cts +166 -0
- package/lib/types/types.d.mts +166 -0
- package/lib/types/utils.d.cts +112 -0
- package/lib/types/utils.d.mts +112 -0
- package/lib/types/views/generator.d.cts +13 -0
- package/lib/types/views/generator.d.mts +13 -0
- package/lib/types/views/index.d.cts +2 -0
- package/lib/types/views/index.d.mts +2 -0
- package/lib/types/views/types.d.cts +30 -0
- package/lib/types/views/types.d.mts +30 -0
- package/package.json +4 -4
- package/lib/cjs/adapter.js.map +0 -1
- package/lib/cjs/constants.js.map +0 -1
- package/lib/cjs/decorators.js.map +0 -1
- package/lib/cjs/errors.js.map +0 -1
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/indexes/generator.js.map +0 -1
- package/lib/cjs/indexes/index.js.map +0 -1
- package/lib/cjs/metadata.js.map +0 -1
- package/lib/cjs/query/Paginator.js.map +0 -1
- package/lib/cjs/query/Statement.js.map +0 -1
- package/lib/cjs/query/constants.js.map +0 -1
- package/lib/cjs/query/index.js.map +0 -1
- package/lib/cjs/query/translate.js.map +0 -1
- package/lib/cjs/repository.js.map +0 -1
- package/lib/cjs/types.js.map +0 -1
- package/lib/cjs/utils.js.map +0 -1
- package/lib/cjs/views/generator.js.map +0 -1
- package/lib/cjs/views/index.js.map +0 -1
- package/lib/cjs/views/types.js.map +0 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Response from a CouchDB Mango query
|
|
3
|
+
* @summary Contains the matching documents and additional metadata about the query execution
|
|
4
|
+
* @interface MangoResponse
|
|
5
|
+
* @template D - The document type
|
|
6
|
+
* @memberOf module:for-couchdb
|
|
7
|
+
* @see Docs: {@link https://docs.couchdb.org/en/latest/api/database/find.html#db-find}
|
|
8
|
+
*/
|
|
9
|
+
export interface MangoResponse<D> {
|
|
10
|
+
/** Array of documents matching the search.
|
|
11
|
+
*
|
|
12
|
+
* In each matching document, the fields specified in the fields part of the request body are listed, along with
|
|
13
|
+
* their values. */
|
|
14
|
+
docs: (D & {
|
|
15
|
+
_id: string;
|
|
16
|
+
_rev: string;
|
|
17
|
+
})[];
|
|
18
|
+
/** A string that enables you to specify which page of results you require.
|
|
19
|
+
*
|
|
20
|
+
* Used for paging through result sets. */
|
|
21
|
+
bookmark?: string;
|
|
22
|
+
/** Execution warnings */
|
|
23
|
+
warning?: string;
|
|
24
|
+
/** Basic execution statistics for a specific request. */
|
|
25
|
+
execution_stats?: MangoExecutionStats;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @description Statistics about the execution of a Mango query
|
|
29
|
+
* @summary Provides detailed metrics about query execution including document and key examination counts
|
|
30
|
+
* @interface MangoExecutionStats
|
|
31
|
+
* @memberOf module:for-couchdb
|
|
32
|
+
* @see Docs: {@link http://docs.couchdb.org/en/latest/api/database/find.html#execution-statistics}
|
|
33
|
+
*/
|
|
34
|
+
export interface MangoExecutionStats {
|
|
35
|
+
/** Number of index keys examined. Currently always 0. */
|
|
36
|
+
total_keys_examined: number;
|
|
37
|
+
/** Number of documents fetched from the database / index.
|
|
38
|
+
*
|
|
39
|
+
* Equivalent to using include_docs = true in a view. */
|
|
40
|
+
total_docs_examined: number;
|
|
41
|
+
/** Number of documents fetched from the database using an out-of-band document fetch.
|
|
42
|
+
*
|
|
43
|
+
* This is only non-zero when read quorum > 1 is specified in the query parameters. */
|
|
44
|
+
total_quorum_docs_examined: number;
|
|
45
|
+
/** Number of results returned from the query. */
|
|
46
|
+
results_returned: number;
|
|
47
|
+
/** Total execution time in milliseconds as measured by the database. */
|
|
48
|
+
execution_time_ms: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @description Parameters for creating a CouchDB Mango index
|
|
52
|
+
* @summary Defines the structure and configuration for a new Mango index
|
|
53
|
+
* @interface CreateIndexRequest
|
|
54
|
+
* @memberOf module:for-couchdb
|
|
55
|
+
* @see Docs: {@link http://docs.couchdb.org/en/latest/api/database/find.html#db-index}
|
|
56
|
+
*/
|
|
57
|
+
export interface CreateIndexRequest {
|
|
58
|
+
/** JSON object describing the index to create */
|
|
59
|
+
index: {
|
|
60
|
+
/** Array of field names following the sort syntax. */
|
|
61
|
+
fields: SortOrder[];
|
|
62
|
+
/** A selector to apply to documents at indexing time, creating a partial index. */
|
|
63
|
+
partial_filter_selector?: MangoSelector;
|
|
64
|
+
};
|
|
65
|
+
/** Name of the design document in which the index will be created. */
|
|
66
|
+
ddoc?: string;
|
|
67
|
+
/** Name of the index. If no name is provided, a name will be generated automatically. */
|
|
68
|
+
name?: string;
|
|
69
|
+
/** Can be "json" or "text".
|
|
70
|
+
*
|
|
71
|
+
* @default "json" */
|
|
72
|
+
type?: "json" | "text";
|
|
73
|
+
/** This field sets whether the created index will be a partitioned or global index. */
|
|
74
|
+
partitioned?: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @description Represents the possible value types in a Mango query
|
|
78
|
+
* @summary Union type of all possible value types that can be used in Mango queries
|
|
79
|
+
* @typedef {(number|string|Date|boolean|object|null)} MangoValue
|
|
80
|
+
* @memberOf module:for-couchdb
|
|
81
|
+
*/
|
|
82
|
+
export type MangoValue = number | string | Date | boolean | object | null;
|
|
83
|
+
/**
|
|
84
|
+
* @description Operators available in Mango queries
|
|
85
|
+
* @summary Union type of all possible operators that can be used in Mango queries
|
|
86
|
+
* @typedef {string} MangoOperator
|
|
87
|
+
* @memberOf module:for-couchdb
|
|
88
|
+
*/
|
|
89
|
+
export type MangoOperator = "$lt" | "$lte" | "$eq" | "$ne" | "$gte" | "$gt" | "$exists" | "$type" | "$in" | "$nin" | "$size" | "$mod" | "$regex" | "$or" | "$and" | "$nor" | "$not" | "$all" | "$allMatch" | "$elemMatch";
|
|
90
|
+
/**
|
|
91
|
+
* @description Represents a CouchDB Mango query selector
|
|
92
|
+
* @summary Type for defining query conditions in Mango queries
|
|
93
|
+
* @typedef {Object} MangoSelector
|
|
94
|
+
* @memberOf module:for-couchdb
|
|
95
|
+
* @see Docs: {@link http://docs.couchdb.org/en/latest/api/database/find.html#selector-syntax}
|
|
96
|
+
*/
|
|
97
|
+
export type MangoSelector = {
|
|
98
|
+
[K in MangoOperator | string]: MangoSelector | MangoSelector[] | MangoValue | MangoValue[];
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* @description Represents a sort order specification in Mango queries
|
|
102
|
+
* @summary Type for defining sort order in Mango queries
|
|
103
|
+
* @typedef {(string|string[]|Object)} SortOrder
|
|
104
|
+
* @memberOf module:for-couchdb
|
|
105
|
+
* @see Docs: {@link http://docs.couchdb.org/en/latest/api/database/find.html#sort-syntax}
|
|
106
|
+
*/
|
|
107
|
+
export type SortOrder = string | string[] | {
|
|
108
|
+
[key: string]: "asc" | "desc";
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* @description Represents a CouchDB Mango query
|
|
112
|
+
* @summary Interface for defining complete Mango queries with selectors, sorting, pagination, and other options
|
|
113
|
+
* @interface MangoQuery
|
|
114
|
+
* @memberOf module:for-couchdb
|
|
115
|
+
* @see Docs: {@link https://docs.couchdb.org/en/latest/api/database/find.html#db-find}
|
|
116
|
+
*/
|
|
117
|
+
export interface MangoQuery {
|
|
118
|
+
/** JSON object describing criteria used to select documents. */
|
|
119
|
+
selector: MangoSelector;
|
|
120
|
+
/** Maximum number of results returned. @default 25 */
|
|
121
|
+
limit?: number;
|
|
122
|
+
/** Skip the first 'n' results, where 'n' is the value specified. */
|
|
123
|
+
skip?: number;
|
|
124
|
+
/** JSON array following sort syntax. */
|
|
125
|
+
sort?: SortOrder[];
|
|
126
|
+
/** JSON array specifying which fields of each object should be returned.
|
|
127
|
+
*
|
|
128
|
+
* If it is omitted, the entire object is returned.
|
|
129
|
+
*
|
|
130
|
+
* @see Docs: {@link http://docs.couchdb.org/en/latest/api/database/find.html#filtering-fields} */
|
|
131
|
+
fields?: string[];
|
|
132
|
+
use_index?: string | [string, string];
|
|
133
|
+
/** Read quorum needed for the result.
|
|
134
|
+
*
|
|
135
|
+
* @default 1 */
|
|
136
|
+
r?: number;
|
|
137
|
+
/** A string that enables you to specify which page of results you require.
|
|
138
|
+
*
|
|
139
|
+
* Used for paging through result sets. */
|
|
140
|
+
bookmark?: string;
|
|
141
|
+
/** Whether to update the index prior to returning the result.
|
|
142
|
+
*
|
|
143
|
+
* @default true */
|
|
144
|
+
update?: boolean;
|
|
145
|
+
/** Whether or not the view results should be returned from a “stable” set of shards. */
|
|
146
|
+
stable?: boolean;
|
|
147
|
+
/** Combination of update = false and stable = true options.
|
|
148
|
+
*
|
|
149
|
+
* Possible options: "ok", false (default). */
|
|
150
|
+
stale?: "ok" | false;
|
|
151
|
+
/** Include execution statistics in the query response.
|
|
152
|
+
*
|
|
153
|
+
* Optional, default: false. */
|
|
154
|
+
execution_stats?: boolean;
|
|
155
|
+
}
|
|
156
|
+
export interface ViewRow<D = any> {
|
|
157
|
+
id?: string;
|
|
158
|
+
key?: any;
|
|
159
|
+
value?: any;
|
|
160
|
+
doc?: D;
|
|
161
|
+
}
|
|
162
|
+
export interface ViewResponse<D = any> {
|
|
163
|
+
total_rows?: number;
|
|
164
|
+
offset?: number;
|
|
165
|
+
rows: ViewRow<D>[];
|
|
166
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { OrderDirection } from "@decaf-ts/core";
|
|
2
|
+
import { CreateIndexRequest } from "./types.cjs";
|
|
3
|
+
/**
|
|
4
|
+
* @description Re-authenticates a connection to CouchDB
|
|
5
|
+
* @summary Refreshes the authentication for a CouchDB connection using the provided credentials
|
|
6
|
+
* @param {any} con - The CouchDB connection object
|
|
7
|
+
* @param {string} user - The username for authentication
|
|
8
|
+
* @param {string} pass - The password for authentication
|
|
9
|
+
* @return {Promise<any>} A promise that resolves to the authentication result
|
|
10
|
+
* @function reAuth
|
|
11
|
+
* @memberOf module:for-couchdb
|
|
12
|
+
*/
|
|
13
|
+
export declare function reAuth(con: any, user: string, pass: string): Promise<any>;
|
|
14
|
+
/**
|
|
15
|
+
* @description Wraps a CouchDB database connection with automatic re-authentication
|
|
16
|
+
* @summary Creates a proxy around a CouchDB database connection that automatically re-authenticates before each operation
|
|
17
|
+
* @param {any} con - The CouchDB connection object
|
|
18
|
+
* @param {string} dbName - The name of the database to use
|
|
19
|
+
* @param {string} user - The username for authentication
|
|
20
|
+
* @param {string} pass - The password for authentication
|
|
21
|
+
* @return {any} The wrapped database connection object
|
|
22
|
+
* @function wrapDocumentScope
|
|
23
|
+
* @memberOf module:for-couchdb
|
|
24
|
+
* @mermaid
|
|
25
|
+
* sequenceDiagram
|
|
26
|
+
* participant Client
|
|
27
|
+
* participant wrapDocumentScope
|
|
28
|
+
* participant DB
|
|
29
|
+
* participant reAuth
|
|
30
|
+
*
|
|
31
|
+
* Client->>wrapDocumentScope: con, dbName, user, pass
|
|
32
|
+
* wrapDocumentScope->>DB: con.use(dbName)
|
|
33
|
+
* Note over wrapDocumentScope: Wrap DB methods with re-auth
|
|
34
|
+
*
|
|
35
|
+
* loop For each method (insert, get, put, destroy, find)
|
|
36
|
+
* wrapDocumentScope->>wrapDocumentScope: Store original method
|
|
37
|
+
* wrapDocumentScope->>wrapDocumentScope: Define new method with re-auth
|
|
38
|
+
* end
|
|
39
|
+
*
|
|
40
|
+
* wrapDocumentScope->>wrapDocumentScope: Add NATIVE property with con value
|
|
41
|
+
* wrapDocumentScope-->>Client: Return wrapped DB
|
|
42
|
+
*
|
|
43
|
+
* Note over Client: Later when client uses DB methods
|
|
44
|
+
* Client->>DB: Any wrapped method call
|
|
45
|
+
* DB->>reAuth: Authenticate before operation
|
|
46
|
+
* reAuth-->>DB: Authentication complete
|
|
47
|
+
* DB->>DB: Call original method
|
|
48
|
+
* DB-->>Client: Return result
|
|
49
|
+
*/
|
|
50
|
+
export declare function wrapDocumentScope(con: any, dbName: string, user: string, pass: string): any;
|
|
51
|
+
/**
|
|
52
|
+
* @description Tests if an attribute name is reserved in CouchDB
|
|
53
|
+
* @summary Checks if an attribute name starts with an underscore, which indicates it's a reserved attribute in CouchDB
|
|
54
|
+
* @param {string} attr - The attribute name to test
|
|
55
|
+
* @return {RegExpMatchArray|null} The match result or null if no match
|
|
56
|
+
* @function testReservedAttributes
|
|
57
|
+
* @memberOf module:for-couchdb
|
|
58
|
+
*/
|
|
59
|
+
export declare function testReservedAttributes(attr: string): RegExpMatchArray | null;
|
|
60
|
+
/**
|
|
61
|
+
* @description Generates a name for a CouchDB index
|
|
62
|
+
* @summary Creates a standardized name for a CouchDB index based on the table, attribute, compositions, and order
|
|
63
|
+
* @param {string} attribute - The primary attribute for the index
|
|
64
|
+
* @param {string} tableName - The name of the table
|
|
65
|
+
* @param {string[]} [compositions] - Optional additional attributes to include in the index
|
|
66
|
+
* @param {OrderDirection} [order] - Optional sort order for the index
|
|
67
|
+
* @param {string} [separator=DefaultSeparator] - The separator to use between parts of the index name
|
|
68
|
+
* @return {string} The generated index name
|
|
69
|
+
* @function generateIndexName
|
|
70
|
+
* @memberOf module:for-couchdb
|
|
71
|
+
*/
|
|
72
|
+
export declare function generateIndexName(attribute: string, tableName: string, compositions?: string[], order?: OrderDirection, separator?: string): string;
|
|
73
|
+
/**
|
|
74
|
+
* @description Generates a CouchDB index configuration
|
|
75
|
+
* @summary Creates a complete CreateIndexRequest object for defining a CouchDB index based on specified parameters
|
|
76
|
+
* @param {string} attribute - The primary attribute for the index
|
|
77
|
+
* @param {string} tableName - The name of the table
|
|
78
|
+
* @param {string[]} [compositions] - Optional additional attributes to include in the index
|
|
79
|
+
* @param {OrderDirection} [order] - Optional sort order for the index
|
|
80
|
+
* @param {string} [separator=DefaultSeparator] - The separator to use between parts of the index name
|
|
81
|
+
* @return {CreateIndexRequest} The complete index configuration object
|
|
82
|
+
* @function generateIndexDoc
|
|
83
|
+
* @memberOf module:for-couchdb
|
|
84
|
+
* @mermaid
|
|
85
|
+
* sequenceDiagram
|
|
86
|
+
* participant Caller
|
|
87
|
+
* participant generateIndexDoc
|
|
88
|
+
* participant generateIndexName
|
|
89
|
+
*
|
|
90
|
+
* Caller->>generateIndexDoc: attribute, tableName, compositions, order, separator
|
|
91
|
+
*
|
|
92
|
+
* Note over generateIndexDoc: Create partial filter selector
|
|
93
|
+
* generateIndexDoc->>generateIndexDoc: Set up filter for tableName
|
|
94
|
+
*
|
|
95
|
+
* alt order is specified
|
|
96
|
+
* Note over generateIndexDoc: Create ordered fields array
|
|
97
|
+
* generateIndexDoc->>generateIndexDoc: Create orderProp for attribute
|
|
98
|
+
* generateIndexDoc->>generateIndexDoc: Map compositions to ordered props
|
|
99
|
+
* generateIndexDoc->>generateIndexDoc: Create sortedTable for table field
|
|
100
|
+
* generateIndexDoc->>generateIndexDoc: Combine all ordered fields
|
|
101
|
+
* else
|
|
102
|
+
* Note over generateIndexDoc: Create simple fields array
|
|
103
|
+
* generateIndexDoc->>generateIndexDoc: Use attribute, compositions, and table as strings
|
|
104
|
+
* end
|
|
105
|
+
*
|
|
106
|
+
* generateIndexDoc->>generateIndexName: Generate index name
|
|
107
|
+
* generateIndexName-->>generateIndexDoc: Return name
|
|
108
|
+
*
|
|
109
|
+
* Note over generateIndexDoc: Create final index request
|
|
110
|
+
* generateIndexDoc-->>Caller: Return CreateIndexRequest
|
|
111
|
+
*/
|
|
112
|
+
export declare function generateIndexDoc(attribute: string, tableName: string, compositions?: string[], order?: OrderDirection, separator?: string): CreateIndexRequest;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { OrderDirection } from "@decaf-ts/core";
|
|
2
|
+
import { CreateIndexRequest } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* @description Re-authenticates a connection to CouchDB
|
|
5
|
+
* @summary Refreshes the authentication for a CouchDB connection using the provided credentials
|
|
6
|
+
* @param {any} con - The CouchDB connection object
|
|
7
|
+
* @param {string} user - The username for authentication
|
|
8
|
+
* @param {string} pass - The password for authentication
|
|
9
|
+
* @return {Promise<any>} A promise that resolves to the authentication result
|
|
10
|
+
* @function reAuth
|
|
11
|
+
* @memberOf module:for-couchdb
|
|
12
|
+
*/
|
|
13
|
+
export declare function reAuth(con: any, user: string, pass: string): Promise<any>;
|
|
14
|
+
/**
|
|
15
|
+
* @description Wraps a CouchDB database connection with automatic re-authentication
|
|
16
|
+
* @summary Creates a proxy around a CouchDB database connection that automatically re-authenticates before each operation
|
|
17
|
+
* @param {any} con - The CouchDB connection object
|
|
18
|
+
* @param {string} dbName - The name of the database to use
|
|
19
|
+
* @param {string} user - The username for authentication
|
|
20
|
+
* @param {string} pass - The password for authentication
|
|
21
|
+
* @return {any} The wrapped database connection object
|
|
22
|
+
* @function wrapDocumentScope
|
|
23
|
+
* @memberOf module:for-couchdb
|
|
24
|
+
* @mermaid
|
|
25
|
+
* sequenceDiagram
|
|
26
|
+
* participant Client
|
|
27
|
+
* participant wrapDocumentScope
|
|
28
|
+
* participant DB
|
|
29
|
+
* participant reAuth
|
|
30
|
+
*
|
|
31
|
+
* Client->>wrapDocumentScope: con, dbName, user, pass
|
|
32
|
+
* wrapDocumentScope->>DB: con.use(dbName)
|
|
33
|
+
* Note over wrapDocumentScope: Wrap DB methods with re-auth
|
|
34
|
+
*
|
|
35
|
+
* loop For each method (insert, get, put, destroy, find)
|
|
36
|
+
* wrapDocumentScope->>wrapDocumentScope: Store original method
|
|
37
|
+
* wrapDocumentScope->>wrapDocumentScope: Define new method with re-auth
|
|
38
|
+
* end
|
|
39
|
+
*
|
|
40
|
+
* wrapDocumentScope->>wrapDocumentScope: Add NATIVE property with con value
|
|
41
|
+
* wrapDocumentScope-->>Client: Return wrapped DB
|
|
42
|
+
*
|
|
43
|
+
* Note over Client: Later when client uses DB methods
|
|
44
|
+
* Client->>DB: Any wrapped method call
|
|
45
|
+
* DB->>reAuth: Authenticate before operation
|
|
46
|
+
* reAuth-->>DB: Authentication complete
|
|
47
|
+
* DB->>DB: Call original method
|
|
48
|
+
* DB-->>Client: Return result
|
|
49
|
+
*/
|
|
50
|
+
export declare function wrapDocumentScope(con: any, dbName: string, user: string, pass: string): any;
|
|
51
|
+
/**
|
|
52
|
+
* @description Tests if an attribute name is reserved in CouchDB
|
|
53
|
+
* @summary Checks if an attribute name starts with an underscore, which indicates it's a reserved attribute in CouchDB
|
|
54
|
+
* @param {string} attr - The attribute name to test
|
|
55
|
+
* @return {RegExpMatchArray|null} The match result or null if no match
|
|
56
|
+
* @function testReservedAttributes
|
|
57
|
+
* @memberOf module:for-couchdb
|
|
58
|
+
*/
|
|
59
|
+
export declare function testReservedAttributes(attr: string): RegExpMatchArray | null;
|
|
60
|
+
/**
|
|
61
|
+
* @description Generates a name for a CouchDB index
|
|
62
|
+
* @summary Creates a standardized name for a CouchDB index based on the table, attribute, compositions, and order
|
|
63
|
+
* @param {string} attribute - The primary attribute for the index
|
|
64
|
+
* @param {string} tableName - The name of the table
|
|
65
|
+
* @param {string[]} [compositions] - Optional additional attributes to include in the index
|
|
66
|
+
* @param {OrderDirection} [order] - Optional sort order for the index
|
|
67
|
+
* @param {string} [separator=DefaultSeparator] - The separator to use between parts of the index name
|
|
68
|
+
* @return {string} The generated index name
|
|
69
|
+
* @function generateIndexName
|
|
70
|
+
* @memberOf module:for-couchdb
|
|
71
|
+
*/
|
|
72
|
+
export declare function generateIndexName(attribute: string, tableName: string, compositions?: string[], order?: OrderDirection, separator?: string): string;
|
|
73
|
+
/**
|
|
74
|
+
* @description Generates a CouchDB index configuration
|
|
75
|
+
* @summary Creates a complete CreateIndexRequest object for defining a CouchDB index based on specified parameters
|
|
76
|
+
* @param {string} attribute - The primary attribute for the index
|
|
77
|
+
* @param {string} tableName - The name of the table
|
|
78
|
+
* @param {string[]} [compositions] - Optional additional attributes to include in the index
|
|
79
|
+
* @param {OrderDirection} [order] - Optional sort order for the index
|
|
80
|
+
* @param {string} [separator=DefaultSeparator] - The separator to use between parts of the index name
|
|
81
|
+
* @return {CreateIndexRequest} The complete index configuration object
|
|
82
|
+
* @function generateIndexDoc
|
|
83
|
+
* @memberOf module:for-couchdb
|
|
84
|
+
* @mermaid
|
|
85
|
+
* sequenceDiagram
|
|
86
|
+
* participant Caller
|
|
87
|
+
* participant generateIndexDoc
|
|
88
|
+
* participant generateIndexName
|
|
89
|
+
*
|
|
90
|
+
* Caller->>generateIndexDoc: attribute, tableName, compositions, order, separator
|
|
91
|
+
*
|
|
92
|
+
* Note over generateIndexDoc: Create partial filter selector
|
|
93
|
+
* generateIndexDoc->>generateIndexDoc: Set up filter for tableName
|
|
94
|
+
*
|
|
95
|
+
* alt order is specified
|
|
96
|
+
* Note over generateIndexDoc: Create ordered fields array
|
|
97
|
+
* generateIndexDoc->>generateIndexDoc: Create orderProp for attribute
|
|
98
|
+
* generateIndexDoc->>generateIndexDoc: Map compositions to ordered props
|
|
99
|
+
* generateIndexDoc->>generateIndexDoc: Create sortedTable for table field
|
|
100
|
+
* generateIndexDoc->>generateIndexDoc: Combine all ordered fields
|
|
101
|
+
* else
|
|
102
|
+
* Note over generateIndexDoc: Create simple fields array
|
|
103
|
+
* generateIndexDoc->>generateIndexDoc: Use attribute, compositions, and table as strings
|
|
104
|
+
* end
|
|
105
|
+
*
|
|
106
|
+
* generateIndexDoc->>generateIndexName: Generate index name
|
|
107
|
+
* generateIndexName-->>generateIndexDoc: Return name
|
|
108
|
+
*
|
|
109
|
+
* Note over generateIndexDoc: Create final index request
|
|
110
|
+
* generateIndexDoc-->>Caller: Return CreateIndexRequest
|
|
111
|
+
*/
|
|
112
|
+
export declare function generateIndexDoc(attribute: string, tableName: string, compositions?: string[], order?: OrderDirection, separator?: string): CreateIndexRequest;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ViewKind } from "@decaf-ts/core";
|
|
2
|
+
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
+
import { Constructor } from "@decaf-ts/decoration";
|
|
4
|
+
import { CreateIndexRequest } from "../types.cjs";
|
|
5
|
+
import { Operator } from "@decaf-ts/core";
|
|
6
|
+
import { CouchDBDesignDoc, CouchDBViewMetadata, ViewIndexDefinition } from "./types.cjs";
|
|
7
|
+
export declare function generateViewName(tableName: string, attr: string, kind: ViewKind, meta: CouchDBViewMetadata, separator?: string): string;
|
|
8
|
+
export declare function generateDesignDocName(tableName: string, viewName: string, separator?: string): string;
|
|
9
|
+
export declare function findViewMetadata<M extends Model>(model: Constructor<M>, kind: ViewKind, attribute?: string): CouchDBViewMetadata[];
|
|
10
|
+
export declare function collectViewMetadata(model: Constructor<Model>, key: Operator, kind: ViewKind): CouchDBViewMetadata[];
|
|
11
|
+
export declare function generateViews<M extends Model>(models: Constructor<M>[]): CouchDBDesignDoc[];
|
|
12
|
+
export declare function generateViewIndexes<M extends Model>(models: Constructor<M>[]): CreateIndexRequest[];
|
|
13
|
+
export declare function viewIndexDefinition(meta: CouchDBViewMetadata): ViewIndexDefinition;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ViewKind } from "@decaf-ts/core";
|
|
2
|
+
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
+
import { Constructor } from "@decaf-ts/decoration";
|
|
4
|
+
import { CreateIndexRequest } from "../types.js";
|
|
5
|
+
import { Operator } from "@decaf-ts/core";
|
|
6
|
+
import { CouchDBDesignDoc, CouchDBViewMetadata, ViewIndexDefinition } from "./types.js";
|
|
7
|
+
export declare function generateViewName(tableName: string, attr: string, kind: ViewKind, meta: CouchDBViewMetadata, separator?: string): string;
|
|
8
|
+
export declare function generateDesignDocName(tableName: string, viewName: string, separator?: string): string;
|
|
9
|
+
export declare function findViewMetadata<M extends Model>(model: Constructor<M>, kind: ViewKind, attribute?: string): CouchDBViewMetadata[];
|
|
10
|
+
export declare function collectViewMetadata(model: Constructor<Model>, key: Operator, kind: ViewKind): CouchDBViewMetadata[];
|
|
11
|
+
export declare function generateViews<M extends Model>(models: Constructor<M>[]): CouchDBDesignDoc[];
|
|
12
|
+
export declare function generateViewIndexes<M extends Model>(models: Constructor<M>[]): CreateIndexRequest[];
|
|
13
|
+
export declare function viewIndexDefinition(meta: CouchDBViewMetadata): ViewIndexDefinition;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OrderDirection, ViewOptions, ViewKey, ViewKind } from "@decaf-ts/core";
|
|
2
|
+
export interface CouchDBViewOptions extends ViewOptions {
|
|
3
|
+
ddoc?: string;
|
|
4
|
+
value?: ViewKey | "doc" | null;
|
|
5
|
+
map?: string | ((doc: any) => void);
|
|
6
|
+
reduce?: string | ((keys: any, values: any, rereduce: boolean) => any);
|
|
7
|
+
returnDocs?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface CouchDBViewMetadata extends CouchDBViewOptions {
|
|
10
|
+
kind: ViewKind;
|
|
11
|
+
attribute: string;
|
|
12
|
+
}
|
|
13
|
+
export interface CouchDBViewDefinition {
|
|
14
|
+
map: string;
|
|
15
|
+
reduce?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface AggregateOptions extends CouchDBViewOptions {
|
|
18
|
+
value?: any;
|
|
19
|
+
}
|
|
20
|
+
export interface CouchDBDesignDoc {
|
|
21
|
+
_id: string;
|
|
22
|
+
_rev?: string;
|
|
23
|
+
language?: "javascript";
|
|
24
|
+
views: Record<string, CouchDBViewDefinition>;
|
|
25
|
+
}
|
|
26
|
+
export interface ViewIndexDefinition {
|
|
27
|
+
attribute: string;
|
|
28
|
+
compositions?: string[];
|
|
29
|
+
directions?: OrderDirection[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OrderDirection, ViewOptions, ViewKey, ViewKind } from "@decaf-ts/core";
|
|
2
|
+
export interface CouchDBViewOptions extends ViewOptions {
|
|
3
|
+
ddoc?: string;
|
|
4
|
+
value?: ViewKey | "doc" | null;
|
|
5
|
+
map?: string | ((doc: any) => void);
|
|
6
|
+
reduce?: string | ((keys: any, values: any, rereduce: boolean) => any);
|
|
7
|
+
returnDocs?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface CouchDBViewMetadata extends CouchDBViewOptions {
|
|
10
|
+
kind: ViewKind;
|
|
11
|
+
attribute: string;
|
|
12
|
+
}
|
|
13
|
+
export interface CouchDBViewDefinition {
|
|
14
|
+
map: string;
|
|
15
|
+
reduce?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface AggregateOptions extends CouchDBViewOptions {
|
|
18
|
+
value?: any;
|
|
19
|
+
}
|
|
20
|
+
export interface CouchDBDesignDoc {
|
|
21
|
+
_id: string;
|
|
22
|
+
_rev?: string;
|
|
23
|
+
language?: "javascript";
|
|
24
|
+
views: Record<string, CouchDBViewDefinition>;
|
|
25
|
+
}
|
|
26
|
+
export interface ViewIndexDefinition {
|
|
27
|
+
attribute: string;
|
|
28
|
+
compositions?: string[];
|
|
29
|
+
directions?: OrderDirection[];
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decaf-ts/for-couchdb",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "decaf-ts couchdb wrappers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"set-git-auth": "git config url.\"https://api:$(cat .token)@github.com/\".insteadOf \"https://github.com/\" && git config url.\"https://ssh:$(cat .token)@github.com/\".insteadOf \"ssh://git@github.com/\" && git config url.\"https://git:$(cat .token)@github.com/\".insteadOf \"git@github.com:\"",
|
|
26
26
|
"flash-forward": "npx npm-check-updates -u && npm run do-install",
|
|
27
27
|
"reset": "rm -rf * && git checkout . && git pull && npm run do-install",
|
|
28
|
-
"build": "
|
|
29
|
-
"build:prod": "
|
|
28
|
+
"build": "build-scripts --dev",
|
|
29
|
+
"build:prod": "build-scripts --prod",
|
|
30
30
|
"test": "jest --runInBand --coverage --detectOpenHandles --passWithNoTests",
|
|
31
31
|
"test:unit": "jest --testPathPatterns=\"/tests/unit\" --passWithNoTests --detectOpenHandles",
|
|
32
32
|
"test:integration": "jest --testPathPatterns=\"/tests/(integration)\" --passWithNoTests --detectOpenHandles",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"clean-publish": "npx clean-publish",
|
|
42
42
|
"drawings": "for FILE in workdocs/drawings/*.drawio; do echo \"converting $FILE to image...\" && docker run --rm -v $(pwd):/data rlespinasse/drawio-export --format png $FILE; done && cp -rf workdocs/drawings/export/* workdocs/resources/",
|
|
43
43
|
"uml": "cd workdocs/uml && for FILE in ./*.puml; do docker run --rm -v $(pwd):/work -w /work miy4/plantuml -DPLANTUML_LIMIT_SIZE=8192 -tpng $FILE; done && cd ../.. && cp -fr workdocs/uml/*.png workdocs/resources/",
|
|
44
|
-
"docs": "npx rimraf ./docs && mkdir docs &&
|
|
44
|
+
"docs": "npx rimraf ./docs && mkdir docs && build-scripts --docs",
|
|
45
45
|
"publish-docs": "docker run -it --rm --user $(id -u):$(id -g) -v \"$(pwd)/workdocs/confluence:/content\" -e ATLASSIAN_API_TOKEN=$(cat .confluence-token) ghcr.io/markdown-confluence/publish:latest",
|
|
46
46
|
"docker:login": "echo $(cat .token) | docker login ghcr.io -u decaf --password-stdin",
|
|
47
47
|
"docker:build": "npm run docker:build-booter && npm run docker:build-couchdb",
|
package/lib/cjs/adapter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../src/adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCASwB;AACxB,+CAA8D;AAC9D,2DAOiC;AACjC,yEAAuD;AACvD,yCAAsC;AAEtC,6CAA6D;AAG7D,+CAA0C;AAC1C,iDAAiD;AACjD,6CAAsE;AAGtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAsB,cAIpB,SAAQ,cAAkC;IAC1C,YAAsB,KAAW,EAAE,OAAe,EAAE,KAAc;QAChE,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QAC7B,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACvE,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC;YACpB,IAAA,4BAAY,EAAC,IAAI,EAAE,CAAC,EAAG,IAAY,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IAEH,SAAS,CACP,SAAiC;QAEjC,OAAO,IAAI,wBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC/C,CAAC;IAEQ,SAAS,CAChB,KAAiB,EACjB,IAAY,EACZ,KAAqB;QAErB,OAAO,IAAI,wBAAgB,CAAC,IAAI,EAAE,KAAK,EA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sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACU,QAAA,kBAAkB,GAAG,QAAQ,CAAC;AAE3C;;;;;;;;;;;;;;GAcG;AAEH;;;;;;GAMG;AACU,QAAA,WAAW,GAAG;IACzB,SAAS,EAAE,IAAI;IACf,EAAE,EAAE,KAAK;IACT,GAAG,EAAE,MAAM;IACX,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,OAAO;IAEd,iDAAiD;IACjD,IAAI,EAAE,MAAM;CACb,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/decorators.ts"],"names":[],"mappings":";;AAIA,0BA6BC;AAED,sBAsBC;AAED,kBAoBC;AAED,kBAoBC;AAED,kBAoBC;AAED,4BAoBC;AAjJD,yCAAyE;AACzE,qDAAkD;AAGlD,SAAgB,OAAO,CACrB,qBAA8D,EAC9D,aAA2C;IAE3C,IAAI,IAAI,GAAuB,EAAE,CAAC;IAClC,IAAI,KAAK,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC;QACzC,IAAI,CAAC,YAAY,GAAG,qBAAqB,CAAC;IAC5C,CAAC;SAAM,IAAI,OAAO,qBAAqB,KAAK,QAAQ,EAAE,CAAC;QACrD,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACpC,CAAC;SAAM,IAAI,qBAAqB,EAAE,CAAC;QACjC,IAAI,GAAG,qBAAqB,CAAC;IAC/B,CAAC;IACD,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;IAC5B,CAAC;SAAM,IAAI,aAAa,EAAE,CAAC;QACzB,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAA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C,QAAQ,CAAC;SACrC,MAAM,CAAC;QACN,SAAS,EAAE,SAAS,QAAQ,CAAC,CAAoB;YAC/C,OAAO,IAAA,yBAAkB,EAAC,eAAQ,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;QAC9D,CAAC;QACD,IAAI,EAAE,CAAC,IAAI,CAAC;KACb,CAAC;SACD,KAAK,EAAE,CAAC;AACb,CAAC"}
|
package/lib/cjs/errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":";;;AAAA,2DAAoD;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,UAAW,SAAQ,yBAAS;IACvC,YAAY,GAAmB;QAC7B,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;CACF;AAJD,gCAIC"}
|
package/lib/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAgD;AAEhD,sDAA0B;AAC1B,mDAA6B;AAC7B,gDAA0B;AAC1B,kDAA4B;AAC5B,+CAAyB;AACzB,iDAA2B;AAC3B,mDAA6B;AAC7B,8CAAwB;AACxB,8CAAwB;AACxB,oDAAwB;AACxB,oDAAwB;AAExB;;;;GAIG;AAEH;;;;GAIG;AACU,QAAA,OAAO,GAAG,aAAa,CAAC;AAErC;;;;GAIG;AACU,QAAA,YAAY,GAAG,aAAa,CAAC;AAE1C,qBAAQ,CAAC,eAAe,CAAC,oBAAY,EAAE,eAAO,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../src/indexes/generator.ts"],"names":[],"mappings":";;AAgFA,0CAsKC;AAtPD,yCAAgF;AAChF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I,GAAG,CACL,CAAC,UAAU,IAAI,CAAC,qBAAc,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CACtC,CAAC,GAA4B,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAC5D,CACF,CACF,CAAC;gBAEF,MAAM,eAAe,GAAG,oBAAoB,CAAC,MAAM,CACjD,CAAC,GAAG,EAAyB,EAAE,CAC7B,GAAG,KAAK,qBAAc,CAAC,GAAG,IAAI,GAAG,KAAK,qBAAc,CAAC,GAAG,CAC3D,CAAC;gBAEF,eAAe,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;oBACpC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;gBACjC,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAA,2BAAmB,EAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QAC5C,IAAI,CAAC,KAAK,CAAC,IAAI;YAAE,OAAO;QACxB,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/indexes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA4B"}
|
package/lib/cjs/metadata.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../src/metadata.ts"],"names":[],"mappings":";;AAGA,kCAOC;AAED,kCAMC;AAED,wCAMC;AA1BD,yCAAiD;AAGjD,SAAgB,WAAW,CAAkB,KAAQ,EAAE,QAAa;IAClE,MAAM,CAAC,cAAc,CAAC,KAAK,EA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