Skip to content

Commit

Permalink
fix: change type name rule to UpperCamelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Mar 16, 2021
1 parent 82a7007 commit 5665b3d
Show file tree
Hide file tree
Showing 58 changed files with 274 additions and 273 deletions.
172 changes: 86 additions & 86 deletions samples/freee/@types/index.ts

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions samples/freee/api/1/account_items/_id@number/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type Methods = {
}

status: 200
resBody: Types.accountItemResponse
resBody: Types.AccountItemResponse
}

/**
Expand All @@ -24,10 +24,10 @@ export type Methods = {
*/
put: {
status: 200
resBody: Types.accountItemResponse
resBody: Types.AccountItemResponse
reqFormat: URLSearchParams
/** 勘定科目の更新 */
reqBody: Types.accountItemParams
reqBody: Types.AccountItemParams
}

/**
Expand Down
6 changes: 3 additions & 3 deletions samples/freee/api/1/account_items/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type Methods = {
}

status: 200
resBody: Types.accountItemsResponse
resBody: Types.AccountItemsResponse
}

/**
Expand All @@ -34,9 +34,9 @@ export type Methods = {
*/
post: {
status: 201
resBody: Types.accountItemResponse
resBody: Types.AccountItemResponse
reqFormat: URLSearchParams
/** 勘定科目の作成 */
reqBody: Types.accountItemParams
reqBody: Types.AccountItemParams
}
}
2 changes: 1 addition & 1 deletion samples/freee/api/1/banks/_id@number/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ export type Methods = {
*/
get: {
status: 200
resBody: Types.bankResponse
resBody: Types.BankResponse
}
}
2 changes: 1 addition & 1 deletion samples/freee/api/1/banks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type Methods = {
status: 200

resBody: {
banks: Types.bankResponse['bank'][]
banks: Types.BankResponse['bank'][]
}
}
}
6 changes: 3 additions & 3 deletions samples/freee/api/1/companies/_id@number/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export type Methods = {
}

status: 200
resBody: Types.companyResponse
resBody: Types.CompanyResponse
}

/**
Expand All @@ -58,8 +58,8 @@ export type Methods = {
*/
put: {
status: 200
resBody: Types.companyUpdateResponse
resBody: Types.CompanyUpdateResponse
reqFormat: URLSearchParams
reqBody?: Types.companyParams
reqBody?: Types.CompanyParams
}
}
2 changes: 1 addition & 1 deletion samples/freee/api/1/companies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export type Methods = {
*/
get: {
status: 200
resBody: Types.companyIndexResponse
resBody: Types.CompanyIndexResponse
}
}
6 changes: 3 additions & 3 deletions samples/freee/api/1/deals/_id@number/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type Methods = {
}

status: 200
resBody: Types.dealResponse
resBody: Types.DealResponse
}

/**
Expand Down Expand Up @@ -130,10 +130,10 @@ export type Methods = {
*/
put: {
status: 200
resBody: Types.dealResponse
resBody: Types.DealResponse
reqFormat: URLSearchParams
/** 取引(収入/支出)の更新 */
reqBody?: Types.dealUpdateParams
reqBody?: Types.DealUpdateParams
}

delete: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export type Methods = {
*/
put: {
status: 200
resBody: Types.dealResponse
resBody: Types.DealResponse
reqFormat: URLSearchParams
/** 取引(収入/支出)の支払行更新 */
reqBody: Types.paymentParams
reqBody: Types.PaymentParams
}

/**
Expand Down
4 changes: 2 additions & 2 deletions samples/freee/api/1/deals/_id@number/payments/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export type Methods = {
*/
post: {
status: 201
resBody: Types.dealResponse
resBody: Types.DealResponse
reqFormat: URLSearchParams
/** 取引(収入/支出)の支払行作成 */
reqBody: Types.paymentParams
reqBody: Types.PaymentParams
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export type Methods = {
*/
put: {
status: 200
resBody: Types.dealResponse
resBody: Types.DealResponse
reqFormat: URLSearchParams
/** +更新の更新情報 */
reqBody: Types.renewUpdateParams
reqBody: Types.RenewUpdateParams
}

/**
Expand All @@ -50,6 +50,6 @@ export type Methods = {
}

status: 200
resBody: Types.dealResponse
resBody: Types.DealResponse
}
}
4 changes: 2 additions & 2 deletions samples/freee/api/1/deals/_id@number/renews/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export type Methods = {
*/
post: {
status: 201
resBody: Types.dealResponse
resBody: Types.DealResponse
reqFormat: URLSearchParams
/** 取引(収入/支出)に対する+更新の情報 */
reqBody: Types.renewCreateParams
reqBody: Types.RenewCreateParams
}
}
6 changes: 3 additions & 3 deletions samples/freee/api/1/deals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export type Methods = {
status: 200

resBody: {
deals: Types.dealResponse['deal'][]
deals: Types.DealResponse['deal'][]

meta: {
/** 検索条件に合致する取引の総数 */
Expand Down Expand Up @@ -172,9 +172,9 @@ export type Methods = {
*/
post: {
status: 201
resBody: Types.dealCreateResponse
resBody: Types.DealCreateResponse
reqFormat: URLSearchParams
/** 取引(収入/支出)の作成 */
reqBody?: Types.dealCreateParams
reqBody?: Types.DealCreateParams
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ export type Methods = {
}

status: 200
resBody: Types.expenseApplicationLineTemplateResponse
resBody: Types.ExpenseApplicationLineTemplateResponse
}

put: {
status: 200
resBody: Types.expenseApplicationLineTemplateResponse
resBody: Types.ExpenseApplicationLineTemplateResponse
reqFormat: URLSearchParams
/** 経費科目の更新 */
reqBody: Types.expenseApplicationLineTemplateParams
reqBody: Types.ExpenseApplicationLineTemplateParams
}

delete: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ export type Methods = {
status: 200

resBody: {
expense_application_line_templates: Types.expenseApplicationLineTemplateResponse['expense_application_line_template'][]
expense_application_line_templates: Types.ExpenseApplicationLineTemplateResponse['expense_application_line_template'][]
}
}

post: {
status: 201
resBody: Types.expenseApplicationLineTemplateResponse
resBody: Types.ExpenseApplicationLineTemplateResponse
reqFormat: URLSearchParams
/** 経費科目の作成 */
reqBody: Types.expenseApplicationLineTemplateParams
reqBody: Types.ExpenseApplicationLineTemplateParams
}
}
6 changes: 3 additions & 3 deletions samples/freee/api/1/expense_applications/_id@number/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type Methods = {
}

status: 200
resBody: Types.expenseApplicationResponse
resBody: Types.ExpenseApplicationResponse
}

/**
Expand All @@ -28,10 +28,10 @@ export type Methods = {
*/
put: {
status: 200
resBody: Types.expenseApplicationResponse
resBody: Types.ExpenseApplicationResponse
reqFormat: URLSearchParams
/** 経費申請の更新 */
reqBody?: Types.expenseApplicationUpdateParams
reqBody?: Types.ExpenseApplicationUpdateParams
}

/**
Expand Down
6 changes: 3 additions & 3 deletions samples/freee/api/1/expense_applications/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type Methods = {
status: 200

resBody: {
expense_applications: Types.expenseApplicationResponse['expense_application'][]
expense_applications: Types.ExpenseApplicationResponse['expense_application'][]
}
}

Expand All @@ -35,9 +35,9 @@ export type Methods = {
*/
post: {
status: 201
resBody: Types.expenseApplicationResponse
resBody: Types.ExpenseApplicationResponse
reqFormat: URLSearchParams
/** 経費申請の作成 */
reqBody?: Types.expenseApplicationCreateParams
reqBody?: Types.ExpenseApplicationCreateParams
}
}
2 changes: 1 addition & 1 deletion samples/freee/api/1/forms/selectables/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export type Methods = {
}

status: 200
resBody: Types.selectablesIndexResponse
resBody: Types.SelectablesIndexResponse
}
}
6 changes: 3 additions & 3 deletions samples/freee/api/1/invoices/_id@number/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type Methods = {
}

status: 200
resBody: Types.invoiceResponse
resBody: Types.InvoiceResponse
}

/**
Expand All @@ -34,10 +34,10 @@ export type Methods = {
*/
put: {
status: 200
resBody: Types.invoiceResponse
resBody: Types.InvoiceResponse
reqFormat: URLSearchParams
/** 請求書の更新 */
reqBody?: Types.invoiceUpdateParams
reqBody?: Types.InvoiceUpdateParams
}

/**
Expand Down
6 changes: 3 additions & 3 deletions samples/freee/api/1/invoices/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type Methods = {
status: 200

resBody: {
invoices: Types.invoiceResponse['invoice'][]
invoices: Types.InvoiceResponse['invoice'][]
}
}

Expand All @@ -58,9 +58,9 @@ export type Methods = {
*/
post: {
status: 201
resBody: Types.invoiceResponse
resBody: Types.InvoiceResponse
reqFormat: URLSearchParams
/** 請求書の作成 */
reqBody?: Types.invoiceCreateParams
reqBody?: Types.InvoiceCreateParams
}
}
6 changes: 3 additions & 3 deletions samples/freee/api/1/items/_id@number/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type Methods = {
}

status: 200
resBody: Types.itemResponse
resBody: Types.ItemResponse
}

/**
Expand All @@ -24,10 +24,10 @@ export type Methods = {
*/
put: {
status: 200
resBody: Types.itemResponse
resBody: Types.ItemResponse
reqFormat: URLSearchParams
/** 品目の更新 */
reqBody?: Types.itemParams
reqBody?: Types.ItemParams
}

/**
Expand Down
6 changes: 3 additions & 3 deletions samples/freee/api/1/items/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type Methods = {
status: 200

resBody: {
items: Types.itemResponse['item'][]
items: Types.ItemResponse['item'][]
}
}

Expand All @@ -27,9 +27,9 @@ export type Methods = {
*/
post: {
status: 201
resBody: Types.itemResponse
resBody: Types.ItemResponse
reqFormat: URLSearchParams
/** 品目の作成 */
reqBody?: Types.itemParams
reqBody?: Types.ItemParams
}
}
2 changes: 1 addition & 1 deletion samples/freee/api/1/journals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ export type Methods = {
}

status: 202
resBody: Types.journalsResponse
resBody: Types.JournalsResponse
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ export type Methods = {
}

status: 200
resBody: Types.journalStatusResponse
resBody: Types.JournalStatusResponse
}
}
Loading

0 comments on commit 5665b3d

Please sign in to comment.