@or-sdk/source 2.1.0 → 2.1.1-beta.4012.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/dist/types/Source.d.ts +0 -92
- package/dist/types/Source.d.ts.map +1 -1
- package/package.json +3 -4
package/dist/types/Source.d.ts
CHANGED
|
@@ -1,112 +1,20 @@
|
|
|
1
1
|
import { Base } from '@or-sdk/base';
|
|
2
2
|
import { SourceConfig, OptionalParams, CreateBranchData, GetParams, UniversalGetParams, PatchPackageMetaData, MetaObjectData, VersionData, AddRevisionData, PaginationParams } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use @or-sdk/library-source instead
|
|
5
|
-
*/
|
|
6
3
|
export declare class Source extends Base {
|
|
7
4
|
private readonly packageType;
|
|
8
|
-
/**
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import { Source } from '@or-sdk/source';
|
|
11
|
-
* import config from '../config';
|
|
12
|
-
*
|
|
13
|
-
* const source = new Source({
|
|
14
|
-
* token: 'my-account-token-string',
|
|
15
|
-
* storeApiUrl: config.STORE_API_URL
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
5
|
constructor(params: SourceConfig);
|
|
20
|
-
/**
|
|
21
|
-
* Add Project
|
|
22
|
-
* ```typescript
|
|
23
|
-
* const result = await source.addProject(data, { type });
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
6
|
addProject(data: CreateBranchData, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
27
|
-
/**
|
|
28
|
-
* Get Projects
|
|
29
|
-
* ```typescript
|
|
30
|
-
* const result = await source.addProjects({ type });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
7
|
getProjects(pagination: PaginationParams, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
34
|
-
/**
|
|
35
|
-
* Get Project
|
|
36
|
-
* ```typescript
|
|
37
|
-
* const result = await source.getProject({ id },{ type });
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
8
|
getProject({ id }: Pick<GetParams, 'id'>, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
41
|
-
/**
|
|
42
|
-
* Patch Project Meta
|
|
43
|
-
* ```typescript
|
|
44
|
-
* const result = await source.patchProjectMeta(data, { type });
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
9
|
patchProjectMeta({ id, ...data }: Pick<GetParams, 'id'> & PatchPackageMetaData, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
48
|
-
/**
|
|
49
|
-
* Delete Project
|
|
50
|
-
* ```typescript
|
|
51
|
-
* const result = await source.deleteProject({ id },{ type });
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
10
|
deleteProject({ id }: Pick<GetParams, 'id'>, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
55
|
-
/**
|
|
56
|
-
* Get Branches
|
|
57
|
-
* ```typescript
|
|
58
|
-
* const result = await source.getBranch({ id, sourceId },{ type });
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
11
|
getBranch({ id, sourceId }: GetParams, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
62
|
-
/**
|
|
63
|
-
* Delete Branch
|
|
64
|
-
* ```typescript
|
|
65
|
-
* const result = await source.deleteBranch({ id, sourceId },{ type });
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
12
|
deleteBranch({ id, sourceId }: GetParams, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
69
|
-
/**
|
|
70
|
-
* Patch Branch Meta
|
|
71
|
-
* ```typescript
|
|
72
|
-
* const result = await source.patchBranchMeta({ id, sourceId, ...data },{ type });
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
13
|
patchBranchMeta({ id, sourceId, ...data }: GetParams & MetaObjectData, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
76
|
-
/**
|
|
77
|
-
* Fork Branch
|
|
78
|
-
* ```typescript
|
|
79
|
-
* const result = await source.forkBranch({ id, sourceId, ...data },{ type });
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
14
|
forkBranch({ id, sourceId, ...data }: GetParams & MetaObjectData, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
83
|
-
/**
|
|
84
|
-
* Set Published
|
|
85
|
-
* ```typescript
|
|
86
|
-
* const result = await source.setPublished({ id, sourceId, version },{ type });
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
15
|
setPublished({ id, sourceId, ...data }: GetParams & VersionData, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
90
|
-
/**
|
|
91
|
-
* Get Revision
|
|
92
|
-
* ```typescript
|
|
93
|
-
* const result = await source.getRevision({ id, sourceId, revisionId },{ type });
|
|
94
|
-
* ```
|
|
95
|
-
*/
|
|
96
16
|
getRevision({ id, sourceId, revisionId }: UniversalGetParams, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
97
|
-
/**
|
|
98
|
-
* Add Revision
|
|
99
|
-
* ```typescript
|
|
100
|
-
* const result = await source.addRevision({ id, sourceId, ...data },{ type });
|
|
101
|
-
* ```
|
|
102
|
-
*/
|
|
103
17
|
addRevision({ id, sourceId, ...data }: GetParams & AddRevisionData, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
104
|
-
/**
|
|
105
|
-
* Set Sandbox
|
|
106
|
-
* ```typescript
|
|
107
|
-
* const result = await source.setSandbox({ id, sourceId, revisionId, ...data },{ type });
|
|
108
|
-
* ```
|
|
109
|
-
*/
|
|
110
18
|
setSandbox({ id, sourceId, revisionId, ...data }: UniversalGetParams & VersionData, { type, signal }?: OptionalParams): Promise<unknown>;
|
|
111
19
|
}
|
|
112
20
|
//# sourceMappingURL=Source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Source.d.ts","sourceRoot":"","sources":["../../src/Source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,OAAO,EACL,YAAY,EACZ,cAAc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7 @@
|
|
|
18
18
|
"dev": "pnpm build:watch:esm"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@or-sdk/base": "^0.
|
|
21
|
+
"@or-sdk/base": "^0.44.0-beta.4012.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"concurrently": "9.0.1",
|
|
@@ -26,6 +26,5 @@
|
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
|
-
}
|
|
30
|
-
"gitHead": "ce62679c119c54ef41fd0d8f7084c563c3b21b24"
|
|
29
|
+
}
|
|
31
30
|
}
|