Skip to content

Commit

Permalink
build(deps): bump axios from 1.7.2 to 1.7.4 (#53)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yuchan Lee <lasuillard@gmail.com>
  • Loading branch information
dependabot[bot] and lasuillard authored Aug 27, 2024
1 parent ad33046 commit e4f8ca7
Show file tree
Hide file tree
Showing 85 changed files with 2,090 additions and 1,897 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
docs/
junit.xml
typecheck.junit.xml
html/

# User hook scripts for VSC devcontainer lifecycle
.devcontainer/initializeCommand/
Expand Down
16 changes: 11 additions & 5 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,7 @@ components:

CollectionRef:
type: object
nullable: true
required: [$ref, $id]
properties:
$ref:
Expand Down Expand Up @@ -1305,6 +1306,7 @@ components:
# color,
access,
author,
parent,
]
properties:
_id:
Expand Down Expand Up @@ -1348,6 +1350,9 @@ components:
$ref: "#/components/schemas/CollectionAccess"
author:
type: boolean
parent:
type: object
nullable: true

SimpleResponse:
type: object
Expand Down Expand Up @@ -1466,12 +1471,15 @@ components:
allOf:
- $ref: "#/components/schemas/Collection"
- type: object
required: [__v, creatorRef]
required: [__v, creatorRef, parent]
properties:
__v:
type: integer
creatorRef:
type: integer
parent:
type: object
nullable: true

UploadCollectionCoverResponse:
type: object
Expand Down Expand Up @@ -2845,15 +2853,13 @@ components:
user:
allOf:
- $ref: "#/components/schemas/User"
- required: [__v]
properties:
- properties:
__v:
type: integer
item:
allOf:
- $ref: "#/components/schemas/User"
- required: [__v]
properties:
- properties:
__v:
type: integer

Expand Down
2 changes: 1 addition & 1 deletion src/client/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class CollectionApi extends _CollectionApi {
collections.items.map((item) => ({
data: item,
id: item._id.toString(),
parent: item.parent.$id.toString(),
parent: item.parent?.$id.toString() || null,

toNode() {
return new TreeNode(this.data);
Expand Down
38 changes: 28 additions & 10 deletions src/generated/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ export interface Collection {
* @memberof Collection
*/
'author': boolean;
/**
*
* @type {object}
* @memberof Collection
*/
'parent': object | null;
}
/**
*
Expand Down Expand Up @@ -335,7 +341,7 @@ export interface CreateCollectionRequest {
* @type {CollectionRef}
* @memberof CreateCollectionRequest
*/
'parent'?: CollectionRef;
'parent'?: CollectionRef | null;
/**
*
* @type {Array<string>}
Expand Down Expand Up @@ -476,6 +482,12 @@ export interface CreateCollectionResponseItem {
* @memberof CreateCollectionResponseItem
*/
'author': boolean;
/**
*
* @type {object}
* @memberof CreateCollectionResponseItem
*/
'parent': object | null;
/**
*
* @type {number}
Expand Down Expand Up @@ -654,7 +666,7 @@ export interface CreateRaindropResponseItem {
* @type {CollectionRef}
* @memberof CreateRaindropResponseItem
*/
'collection': CollectionRef;
'collection': CollectionRef | null;
/**
*
* @type {number}
Expand Down Expand Up @@ -1039,7 +1051,7 @@ export interface GetChildCollectionsResponseItemsInner {
* @type {CollectionRef}
* @memberof GetChildCollectionsResponseItemsInner
*/
'parent': CollectionRef;
'parent': CollectionRef | null;
}
/**
*
Expand Down Expand Up @@ -1365,7 +1377,7 @@ export interface GetRaindropResponseItem {
* @type {CollectionRef}
* @memberof GetRaindropResponseItem
*/
'collection': CollectionRef;
'collection': CollectionRef | null;
/**
*
* @type {number}
Expand Down Expand Up @@ -2136,7 +2148,7 @@ export interface RemoveRaindropResponseItem {
* @type {CollectionRef}
* @memberof RemoveRaindropResponseItem
*/
'collection': CollectionRef;
'collection': CollectionRef | null;
/**
*
* @type {number}
Expand Down Expand Up @@ -2585,7 +2597,7 @@ export interface UpdateCollectionRequest {
* @type {CollectionRef}
* @memberof UpdateCollectionRequest
*/
'parent'?: CollectionRef;
'parent'?: CollectionRef | null;
/**
*
* @type {Array<string>}
Expand Down Expand Up @@ -2842,7 +2854,7 @@ export interface UpdateCurrentUserResponseUser {
* @type {number}
* @memberof UpdateCurrentUserResponseUser
*/
'__v': number;
'__v'?: number;
}
/**
*
Expand Down Expand Up @@ -2886,7 +2898,7 @@ export interface UpdateRaindropResponseItem {
* @type {CollectionRef}
* @memberof UpdateRaindropResponseItem
*/
'collection': CollectionRef;
'collection': CollectionRef | null;
/**
*
* @type {number}
Expand Down Expand Up @@ -3198,6 +3210,12 @@ export interface UploadCollectionCoverResponseItem {
* @memberof UploadCollectionCoverResponseItem
*/
'author': boolean;
/**
*
* @type {object}
* @memberof UploadCollectionCoverResponseItem
*/
'parent': object | null;
/**
*
* @type {number}
Expand Down Expand Up @@ -3247,7 +3265,7 @@ export interface UploadFileResponseItem {
* @type {CollectionRef}
* @memberof UploadFileResponseItem
*/
'collection': CollectionRef;
'collection': CollectionRef | null;
/**
*
* @type {number}
Expand Down Expand Up @@ -3418,7 +3436,7 @@ export interface UploadRaindropCoverResponseItem {
* @type {CollectionRef}
* @memberof UploadRaindropCoverResponseItem
*/
'collection': CollectionRef;
'collection': CollectionRef | null;
/**
*
* @type {number}
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* v8 ignore start */
import * as client from "./client";
import * as generated from "./generated"; // For those who think this library lacks something
import * as utils from "./utils";
Expand All @@ -6,3 +7,4 @@ export { client, generated, utils };

// Handy default
export default client.Raindrop;
/* v8 ignore end */
2 changes: 2 additions & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* v8 ignore start */
import * as tree from "./tree";

export { tree };
/* v8 ignore end */
Loading

0 comments on commit e4f8ca7

Please sign in to comment.