dub 0.1.0 → 0.3.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/CHANGELOG.md +33 -0
- package/README.md +43 -23
- package/core.d.ts +3 -1
- package/core.d.ts.map +1 -1
- package/core.js +21 -11
- package/core.js.map +1 -1
- package/core.mjs +21 -11
- package/core.mjs.map +1 -1
- package/index.d.mts +9 -5
- package/index.d.ts +9 -5
- package/index.d.ts.map +1 -1
- package/index.js +11 -8
- package/index.js.map +1 -1
- package/index.mjs +11 -8
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/links/bulk.d.ts +1 -1
- package/resources/links/bulk.d.ts.map +1 -1
- package/resources/links/bulk.js +1 -1
- package/resources/links/bulk.js.map +1 -1
- package/resources/links/bulk.mjs +1 -1
- package/resources/links/bulk.mjs.map +1 -1
- package/resources/links/info.d.ts +2 -2
- package/resources/links/info.d.ts.map +1 -1
- package/resources/links/info.js +3 -2
- package/resources/links/info.js.map +1 -1
- package/resources/links/info.mjs +3 -2
- package/resources/links/info.mjs.map +1 -1
- package/resources/links/links.d.ts +5 -5
- package/resources/links/links.d.ts.map +1 -1
- package/resources/links/links.js +6 -5
- package/resources/links/links.js.map +1 -1
- package/resources/links/links.mjs +6 -5
- package/resources/links/links.mjs.map +1 -1
- package/resources/projects/index.d.ts +2 -2
- package/resources/projects/index.d.ts.map +1 -1
- package/resources/projects/index.js.map +1 -1
- package/resources/projects/index.mjs.map +1 -1
- package/resources/projects/projects.d.ts +10 -1
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js +2 -1
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +2 -1
- package/resources/projects/projects.mjs.map +1 -1
- package/resources/projects/tags.d.ts +16 -3
- package/resources/projects/tags.d.ts.map +1 -1
- package/resources/projects/tags.js +4 -2
- package/resources/projects/tags.js.map +1 -1
- package/resources/projects/tags.mjs +4 -2
- package/resources/projects/tags.mjs.map +1 -1
- package/src/core.ts +25 -15
- package/src/index.ts +19 -11
- package/src/resources/index.ts +7 -1
- package/src/resources/links/bulk.ts +2 -2
- package/src/resources/links/info.ts +4 -3
- package/src/resources/links/links.ts +10 -9
- package/src/resources/projects/index.ts +2 -2
- package/src/resources/projects/projects.ts +12 -1
- package/src/resources/projects/tags.ts +20 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -11,7 +11,8 @@ export class Projects extends APIResource {
|
|
|
11
11
|
/**
|
|
12
12
|
* Retrieve a project for the authenticated user.
|
|
13
13
|
*/
|
|
14
|
-
retrieve(
|
|
14
|
+
retrieve(params: ProjectRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<ProjectDetails> {
|
|
15
|
+
const { projectSlug = this._client.projectSlug } = params;
|
|
15
16
|
return this._client.get(`/projects/${projectSlug}`, options);
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -111,12 +112,22 @@ export namespace ProjectDetails {
|
|
|
111
112
|
|
|
112
113
|
export type ProjectListResponse = Array<Project>;
|
|
113
114
|
|
|
115
|
+
export interface ProjectRetrieveParams {
|
|
116
|
+
/**
|
|
117
|
+
* The slug for the project to retrieve. E.g. for app.dub.co/acme, the projectSlug
|
|
118
|
+
* is 'acme'.
|
|
119
|
+
*/
|
|
120
|
+
projectSlug?: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
114
123
|
export namespace Projects {
|
|
115
124
|
export import Project = ProjectsAPI.Project;
|
|
116
125
|
export import ProjectDetails = ProjectsAPI.ProjectDetails;
|
|
117
126
|
export import ProjectListResponse = ProjectsAPI.ProjectListResponse;
|
|
127
|
+
export import ProjectRetrieveParams = ProjectsAPI.ProjectRetrieveParams;
|
|
118
128
|
export import Tags = TagsAPI.Tags;
|
|
119
129
|
export import Tag = TagsAPI.Tag;
|
|
120
130
|
export import TagListResponse = TagsAPI.TagListResponse;
|
|
121
131
|
export import TagCreateParams = TagsAPI.TagCreateParams;
|
|
132
|
+
export import TagListParams = TagsAPI.TagListParams;
|
|
122
133
|
}
|
|
@@ -8,14 +8,16 @@ export class Tags extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Create a new tag for the authenticated project.
|
|
10
10
|
*/
|
|
11
|
-
create(
|
|
11
|
+
create(params: TagCreateParams, options?: Core.RequestOptions): Core.APIPromise<Tag> {
|
|
12
|
+
const { projectSlug = this._client.projectSlug, ...body } = params;
|
|
12
13
|
return this._client.post(`/projects/${projectSlug}/tags`, { body, ...options });
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* Retrieve a list of tags for the authenticated project.
|
|
17
18
|
*/
|
|
18
|
-
list(
|
|
19
|
+
list(params: TagListParams, options?: Core.RequestOptions): Core.APIPromise<TagListResponse> {
|
|
20
|
+
const { projectSlug = this._client.projectSlug } = params;
|
|
19
21
|
return this._client.get(`/projects/${projectSlug}/tags`, options);
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -41,13 +43,28 @@ export type TagListResponse = Array<Tag>;
|
|
|
41
43
|
|
|
42
44
|
export interface TagCreateParams {
|
|
43
45
|
/**
|
|
44
|
-
* The
|
|
46
|
+
* Path param: The slug for the project to create tags for. E.g. for
|
|
47
|
+
* app.dub.co/acme, the projectSlug is 'acme'.
|
|
48
|
+
*/
|
|
49
|
+
projectSlug?: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Body param: The name of the tag to create.
|
|
45
53
|
*/
|
|
46
54
|
tag?: string;
|
|
47
55
|
}
|
|
48
56
|
|
|
57
|
+
export interface TagListParams {
|
|
58
|
+
/**
|
|
59
|
+
* The slug for the project to retrieve tags for. E.g. for app.dub.co/acme, the
|
|
60
|
+
* projectSlug is 'acme'.
|
|
61
|
+
*/
|
|
62
|
+
projectSlug?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
49
65
|
export namespace Tags {
|
|
50
66
|
export import Tag = TagsAPI.Tag;
|
|
51
67
|
export import TagListResponse = TagsAPI.TagListResponse;
|
|
52
68
|
export import TagCreateParams = TagsAPI.TagCreateParams;
|
|
69
|
+
export import TagListParams = TagsAPI.TagListParams;
|
|
53
70
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.3.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.3.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|