@ayasofyazilim/saas 0.0.29 → 0.0.30

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.
Files changed (85) hide show
  1. package/AccountService/AccountServiceClient.ts +65 -65
  2. package/AccountService/core/ApiRequestOptions.ts +12 -12
  3. package/AccountService/core/BaseHttpRequest.ts +9 -9
  4. package/AccountService/core/FetchHttpRequest.ts +21 -21
  5. package/AccountService/core/OpenAPI.ts +55 -55
  6. package/AccountService/core/request.ts +340 -340
  7. package/AccountService/schemas.gen.ts +5103 -5103
  8. package/AccountService/services.gen.ts +1452 -1452
  9. package/AccountService/types.gen.ts +9896 -9896
  10. package/AdministrationService/AdministrationServiceClient.ts +74 -74
  11. package/AdministrationService/core/ApiRequestOptions.ts +12 -12
  12. package/AdministrationService/core/BaseHttpRequest.ts +9 -9
  13. package/AdministrationService/core/FetchHttpRequest.ts +21 -21
  14. package/AdministrationService/core/OpenAPI.ts +55 -55
  15. package/AdministrationService/core/request.ts +340 -340
  16. package/AdministrationService/index.ts +8 -8
  17. package/AdministrationService/schemas.gen.ts +5897 -5897
  18. package/AdministrationService/services.gen.ts +1332 -1332
  19. package/AdministrationService/types.gen.ts +9024 -9024
  20. package/BackerService/core/ApiRequestOptions.ts +12 -12
  21. package/BackerService/core/BaseHttpRequest.ts +9 -9
  22. package/BackerService/core/FetchHttpRequest.ts +21 -21
  23. package/BackerService/core/OpenAPI.ts +55 -55
  24. package/BackerService/core/request.ts +340 -340
  25. package/BackerService/schemas.gen.ts +12444 -12444
  26. package/CRMService/CRMServiceClient.ts +71 -0
  27. package/CRMService/core/ApiError.ts +21 -0
  28. package/CRMService/core/ApiRequestOptions.ts +13 -0
  29. package/CRMService/core/ApiResult.ts +7 -0
  30. package/CRMService/core/BaseHttpRequest.ts +10 -0
  31. package/CRMService/core/CancelablePromise.ts +126 -0
  32. package/CRMService/core/FetchHttpRequest.ts +22 -0
  33. package/CRMService/core/OpenAPI.ts +56 -0
  34. package/CRMService/core/request.ts +341 -0
  35. package/CRMService/index.ts +9 -0
  36. package/CRMService/schemas.gen.ts +14633 -0
  37. package/CRMService/services.gen.ts +1422 -0
  38. package/CRMService/types.gen.ts +3112 -0
  39. package/FundraiserService/FundraiserServiceClient.ts +47 -47
  40. package/FundraiserService/core/ApiError.ts +20 -20
  41. package/FundraiserService/core/ApiResult.ts +6 -6
  42. package/FundraiserService/core/CancelablePromise.ts +125 -125
  43. package/FundraiserService/index.ts +8 -8
  44. package/FundraiserService/schemas.gen.ts +11548 -11548
  45. package/FundraiserService/services.gen.ts +627 -627
  46. package/IdentityService/IdentityServiceClient.ts +77 -77
  47. package/IdentityService/core/ApiRequestOptions.ts +12 -12
  48. package/IdentityService/core/BaseHttpRequest.ts +9 -9
  49. package/IdentityService/core/FetchHttpRequest.ts +21 -21
  50. package/IdentityService/core/OpenAPI.ts +55 -55
  51. package/IdentityService/core/request.ts +340 -340
  52. package/IdentityService/schemas.gen.ts +6573 -6573
  53. package/IdentityService/services.gen.ts +2839 -2839
  54. package/IdentityService/types.gen.ts +17446 -17446
  55. package/MerchantService/core/ApiRequestOptions.ts +12 -12
  56. package/MerchantService/core/BaseHttpRequest.ts +9 -9
  57. package/MerchantService/core/FetchHttpRequest.ts +21 -21
  58. package/MerchantService/core/OpenAPI.ts +55 -55
  59. package/MerchantService/core/request.ts +340 -340
  60. package/MerchantService/schemas.gen.ts +14764 -14764
  61. package/MerchantService/services.gen.ts +1602 -1602
  62. package/ProjectService/core/ApiRequestOptions.ts +12 -12
  63. package/ProjectService/core/BaseHttpRequest.ts +9 -9
  64. package/ProjectService/core/FetchHttpRequest.ts +21 -21
  65. package/ProjectService/core/OpenAPI.ts +55 -55
  66. package/ProjectService/core/request.ts +340 -340
  67. package/ProjectService/schemas.gen.ts +5147 -5147
  68. package/ProjectService/services.gen.ts +492 -492
  69. package/ProjectService.json +2937 -2937
  70. package/SaasService/core/ApiRequestOptions.ts +12 -12
  71. package/SaasService/core/BaseHttpRequest.ts +9 -9
  72. package/SaasService/core/FetchHttpRequest.ts +21 -21
  73. package/SaasService/core/OpenAPI.ts +55 -55
  74. package/SaasService/core/request.ts +340 -340
  75. package/SaasService/schemas.gen.ts +5278 -5278
  76. package/SaasService/services.gen.ts +1325 -1325
  77. package/SaasService/types.gen.ts +9052 -9052
  78. package/SettingService/SettingServiceClient.ts +62 -62
  79. package/SettingService/index.ts +8 -8
  80. package/SettingService/schemas.gen.ts +5779 -5779
  81. package/SettingService/services.gen.ts +787 -787
  82. package/SettingService/types.gen.ts +1862 -1862
  83. package/generator.mjs +26 -16
  84. package/package.json +1 -1
  85. package/swagger.json +4794 -4794
package/generator.mjs CHANGED
@@ -1,4 +1,4 @@
1
- #! /usr/bin/env node
1
+ #! /usr/bin/env node
2
2
  import { createClient } from "@hey-api/openapi-ts";
3
3
  import SwaggerParser from "@apidevtools/swagger-parser";
4
4
  import fs from "fs";
@@ -51,8 +51,8 @@ var initial_api_list = [
51
51
  dereference: true,
52
52
  },
53
53
  {
54
- input: "swagger-json/Merchant",
55
- output: "Merchant",
54
+ input: "swagger-json/CRM",
55
+ output: "CRM",
56
56
  port: 44335,
57
57
  dereference: true,
58
58
  },
@@ -117,13 +117,16 @@ async function generateApi(api_list) {
117
117
  types: {
118
118
  // dates: "types+transform" TODO implement this
119
119
  // name: "PascalCase" TODO implement this
120
- tree: true
121
- }
120
+ tree: true,
121
+ },
122
122
  });
123
123
  fs.unlinkSync(temp_swagger);
124
- fs.writeFileSync(`${api.output}Service/index.ts`, `\nexport * from './schemas.gen';`, { flag: 'a' });
124
+ fs.writeFileSync(
125
+ `${api.output}Service/index.ts`,
126
+ `\nexport * from './schemas.gen';`,
127
+ { flag: "a" },
128
+ );
125
129
  } else {
126
-
127
130
  await createClient({
128
131
  input: temp_swagger,
129
132
  output: api.output + "Service",
@@ -135,22 +138,29 @@ async function generateApi(api_list) {
135
138
  }
136
139
  }
137
140
 
138
- const args = process.argv.filter(val => val.startsWith('--'));
139
- const isAll = args.filter(val => val === '--all').length > 0;
140
- const hasFilter = args.filter(val => val.startsWith('--filter')).length > 0;
141
+ const args = process.argv.filter((val) => val.startsWith("--"));
142
+ const isAll = args.filter((val) => val === "--all").length > 0;
143
+ const hasFilter = args.filter((val) => val.startsWith("--filter")).length > 0;
141
144
  const knownArgs = ["--all", "--filter"];
142
- const unknownArgs = args.filter(val => !knownArgs.includes(val) && !knownArgs.includes(val.split('=').at(0)));
145
+ const unknownArgs = args.filter(
146
+ (val) =>
147
+ !knownArgs.includes(val) && !knownArgs.includes(val.split("=").at(0)),
148
+ );
143
149
  async function init() {
144
150
  if (unknownArgs.length > 0) {
145
- return console.error(`❌ Unknown arguments: ${unknownArgs.join(', ')}`);
151
+ return console.error(`❌ Unknown arguments: ${unknownArgs.join(", ")}`);
146
152
  }
147
153
  if (isAll && hasFilter) {
148
154
  return console.error(`❌ Cannot use --all and --filter at the same time.`);
149
155
  }
150
156
  if (hasFilter) {
151
- const filter = args.filter(val => val.startsWith('--filter'))[0].split('=')[1];
152
- const filterArgs = filter.split(',');
153
- initial_api_list = initial_api_list.filter(val => filterArgs.includes(val.output))
157
+ const filter = args
158
+ .filter((val) => val.startsWith("--filter"))[0]
159
+ .split("=")[1];
160
+ const filterArgs = filter.split(",");
161
+ initial_api_list = initial_api_list.filter((val) =>
162
+ filterArgs.includes(val.output),
163
+ );
154
164
  if (initial_api_list.length === 0) {
155
165
  return console.error(`❌ Unknown filter: ${filter}`);
156
166
  }
@@ -158,4 +168,4 @@ async function init() {
158
168
  }
159
169
  await generateApi(initial_api_list);
160
170
  }
161
- init()
171
+ init();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ayasofyazilim/saas",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "Ayasofyazılım SAAS",
5
5
  "main": "generator.mjs",
6
6
  "bin": {