Skip to content

Commit

Permalink
Ignore generated files from Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mfal committed Jun 5, 2020
1 parent 3868103 commit 0479217
Show file tree
Hide file tree
Showing 8 changed files with 217 additions and 224 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Node.js Test
on: [push, pull_request]
on: [push]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ package.json
.yo-rc.json
.prettierrc
tsconfig.json
build
build
**/*_types-ti.ts
36 changes: 18 additions & 18 deletions src/auth/kubernetes_types-ti.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@ import * as t from "ts-interface-checker";
// tslint:disable:object-literal-key-quotes

export const IVaultKubernetesAuthLoginConfig = t.iface([], {
role: "string",
jwt: t.opt("string"),
jwt_path: t.opt("string"),
"role": "string",
"jwt": t.opt("string"),
"jwt_path": t.opt("string"),
});

export const IVaultKubernetesAuthLoginResponse = t.iface(["IVaultTokenAuthResponse"], {
auth: t.iface([], {
client_token: "string",
accessor: "string",
policies: t.array("string"),
lease_duration: "number",
renewable: "boolean",
metadata: t.iface([], {
role: "string",
service_account_name: "string",
service_account_namespace: "string",
service_account_secret_name: "string",
service_account_uid: "string",
}),
"auth": t.iface([], {
"client_token": "string",
"accessor": "string",
"policies": t.array("string"),
"lease_duration": "number",
"renewable": "boolean",
"metadata": t.iface([], {
"role": "string",
"service_account_name": "string",
"service_account_namespace": "string",
"service_account_secret_name": "string",
"service_account_uid": "string",
}),
}),
});

const exportedTypeSuite: t.ITypeSuite = {
IVaultKubernetesAuthLoginConfig,
IVaultKubernetesAuthLoginResponse,
IVaultKubernetesAuthLoginConfig,
IVaultKubernetesAuthLoginResponse,
};
export default exportedTypeSuite;
26 changes: 13 additions & 13 deletions src/auth/token_types-ti.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ import * as t from "ts-interface-checker";
// tslint:disable:object-literal-key-quotes

export const IVaultTokenRenewSelfOptions = t.iface([], {
increment: t.opt("string"),
"increment": t.opt("string"),
});

export const IVaultTokenRenewOptions = t.iface([], {
token: "string",
increment: t.opt("string"),
"token": "string",
"increment": t.opt("string"),
});

export const IVaultTokenAuthResponse = t.iface([], {
auth: t.iface([], {
client_token: "string",
accessor: "string",
policies: t.array("string"),
lease_duration: "number",
renewable: "boolean",
}),
"auth": t.iface([], {
"client_token": "string",
"accessor": "string",
"policies": t.array("string"),
"lease_duration": "number",
"renewable": "boolean",
}),
});

const exportedTypeSuite: t.ITypeSuite = {
IVaultTokenRenewSelfOptions,
IVaultTokenRenewOptions,
IVaultTokenAuthResponse,
IVaultTokenRenewSelfOptions,
IVaultTokenRenewOptions,
IVaultTokenAuthResponse,
};
export default exportedTypeSuite;
73 changes: 36 additions & 37 deletions src/engines/kv2_types-ti.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,59 +5,58 @@ import * as t from "ts-interface-checker";
// tslint:disable:object-literal-key-quotes

export const IKV2CreateBody = t.iface([], {
data: t.iface([], {}),
options: t.opt(
t.iface([], {
cas: t.opt("number"),
}),
),
"data": t.iface([], {
}),
"options": t.opt(t.iface([], {
"cas": t.opt("number"),
})),
});

export const IKV2CreateResponse = t.iface([], {
data: t.iface([], {
created_time: "string",
deletion_time: "string",
destroyed: "boolean",
version: "number",
}),
"data": t.iface([], {
"created_time": "string",
"deletion_time": "string",
"destroyed": "boolean",
"version": "number",
}),
});

export const IKV2ReadResponse = t.iface([], {
data: t.iface([], {
data: t.iface([], {}),
metadata: t.opt(
t.iface([], {
created_time: "string",
deletion_time: "string",
destroyed: "boolean",
version: "number",
}),
),
"data": t.iface([], {
"data": t.iface([], {
}),
"metadata": t.opt(t.iface([], {
"created_time": "string",
"deletion_time": "string",
"destroyed": "boolean",
"version": "number",
})),
}),
});

export const IKV2ListResponse = t.iface([], {
data: t.iface([], {
keys: t.array("string"),
}),
"data": t.iface([], {
"keys": t.array("string"),
}),
});

export const IKV2ReadMetadataResponse = t.iface([], {
data: t.iface([], {
created_time: "string",
current_version: "number",
max_versions: "number",
oldest_version: "number",
updated_time: "string",
versions: t.iface([], {}),
"data": t.iface([], {
"created_time": "string",
"current_version": "number",
"max_versions": "number",
"oldest_version": "number",
"updated_time": "string",
"versions": t.iface([], {
}),
}),
});

const exportedTypeSuite: t.ITypeSuite = {
IKV2CreateBody,
IKV2CreateResponse,
IKV2ReadResponse,
IKV2ListResponse,
IKV2ReadMetadataResponse,
IKV2CreateBody,
IKV2CreateResponse,
IKV2ReadResponse,
IKV2ListResponse,
IKV2ReadMetadataResponse,
};
export default exportedTypeSuite;
18 changes: 10 additions & 8 deletions src/engines/kv_types-ti.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@
import * as t from "ts-interface-checker";
// tslint:disable:object-literal-key-quotes

export const IKVCreateBody = t.iface([], {});
export const IKVCreateBody = t.iface([], {
});

export const IKVReadResponse = t.iface([], {
data: t.iface([], {}),
"data": t.iface([], {
}),
});

export const IKVListResponse = t.iface([], {
data: t.iface([], {
keys: t.array("string"),
}),
"data": t.iface([], {
"keys": t.array("string"),
}),
});

const exportedTypeSuite: t.ITypeSuite = {
IKVCreateBody,
IKVReadResponse,
IKVListResponse,
IKVCreateBody,
IKVReadResponse,
IKVListResponse,
};
export default exportedTypeSuite;
90 changes: 45 additions & 45 deletions src/engines/totp_types-ti.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,73 +5,73 @@ import * as t from "ts-interface-checker";
// tslint:disable:object-literal-key-quotes

export const ITotpCreateOptionsGenerate = t.iface([], {
generate: t.lit(true),
exported: t.opt("boolean"),
key_size: t.opt("number"),
issuer: "string",
account_name: "string",
period: t.opt("number"),
algorithm: t.opt("string"),
digits: t.opt("number"),
skew: t.opt("number"),
qr_size: t.opt("number"),
"generate": t.lit(true),
"exported": t.opt("boolean"),
"key_size": t.opt("number"),
"issuer": "string",
"account_name": "string",
"period": t.opt("number"),
"algorithm": t.opt("string"),
"digits": t.opt("number"),
"skew": t.opt("number"),
"qr_size": t.opt("number"),
});

export const ITotpCreateOptionsNoGenerate = t.iface([], {
generate: t.lit(false),
url: t.opt("string"),
issuer: t.opt("string"),
account_name: t.opt("string"),
period: t.opt("number"),
algorithm: t.opt("string"),
digits: t.opt("number"),
"generate": t.lit(false),
"url": t.opt("string"),
"issuer": t.opt("string"),
"account_name": t.opt("string"),
"period": t.opt("number"),
"algorithm": t.opt("string"),
"digits": t.opt("number"),
});

export const ITotpCreateOptions = t.union("ITotpCreateOptionsGenerate", "ITotpCreateOptionsNoGenerate");

export const ITotpCreateResponseExported = t.iface([], {
data: t.iface([], {
barcode: "string",
url: "string",
}),
"data": t.iface([], {
"barcode": "string",
"url": "string",
}),
});

export const ITotpReadResponse = t.iface([], {
data: t.iface([], {
account_name: "string",
algorithm: "string",
digits: "number",
issuer: "string",
period: "number",
}),
"data": t.iface([], {
"account_name": "string",
"algorithm": "string",
"digits": "number",
"issuer": "string",
"period": "number",
}),
});

export const ITotpListResponse = t.iface([], {
data: t.iface([], {
keys: t.array("string"),
}),
"data": t.iface([], {
"keys": t.array("string"),
}),
});

export const ITotpGenerateCodeResponse = t.iface([], {
data: t.iface([], {
code: "string",
}),
"data": t.iface([], {
"code": "string",
}),
});

export const ITotpValidateCodeResponse = t.iface([], {
data: t.iface([], {
valid: "boolean",
}),
"data": t.iface([], {
"valid": "boolean",
}),
});

const exportedTypeSuite: t.ITypeSuite = {
ITotpCreateOptionsGenerate,
ITotpCreateOptionsNoGenerate,
ITotpCreateOptions,
ITotpCreateResponseExported,
ITotpReadResponse,
ITotpListResponse,
ITotpGenerateCodeResponse,
ITotpValidateCodeResponse,
ITotpCreateOptionsGenerate,
ITotpCreateOptionsNoGenerate,
ITotpCreateOptions,
ITotpCreateResponseExported,
ITotpReadResponse,
ITotpListResponse,
ITotpGenerateCodeResponse,
ITotpValidateCodeResponse,
};
export default exportedTypeSuite;
Loading

0 comments on commit 0479217

Please sign in to comment.