Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Commit

Permalink
Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencejones committed May 17, 2023
0 parents commit 7f84890
Show file tree
Hide file tree
Showing 149 changed files with 87,479 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.jar
wwwroot/*.js
node_modules
typings
dist
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
140 changes: 140 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
.gitignore
.npmignore
README.md
package.json
src/apis/ActionsV1Api.ts
src/apis/CatalogV2Api.ts
src/apis/CustomFieldOptionsV1Api.ts
src/apis/CustomFieldsV1Api.ts
src/apis/IncidentAttachmentsV1Api.ts
src/apis/IncidentRolesV1Api.ts
src/apis/IncidentStatusesV1Api.ts
src/apis/IncidentTimestampsV2Api.ts
src/apis/IncidentTypesV1Api.ts
src/apis/IncidentUpdatesV2Api.ts
src/apis/IncidentsV1Api.ts
src/apis/IncidentsV2Api.ts
src/apis/SeveritiesV1Api.ts
src/apis/UtilitiesV1Api.ts
src/apis/index.ts
src/index.ts
src/models/APIKeyV2.ts
src/models/ActionV1.ts
src/models/ActorV2.ts
src/models/AllResponseBody.ts
src/models/AnnouncementRuleCreatedV1ResponseBody.ts
src/models/AuditLogActorMetadataV2.ts
src/models/AuditLogActorV2.ts
src/models/AuditLogEntryContextV2.ts
src/models/AuditLogPrivateIncidentAccessAttemptedMetadataV2.ts
src/models/AuditLogTargetV2.ts
src/models/AuditLogUserRoleMembershipChangedMetadataV2.ts
src/models/AuditLogUserSCIMGroupMappingChangedMetadataV2.ts
src/models/CatalogAttributeBindingPayloadV2.ts
src/models/CatalogAttributeBindingV2.ts
src/models/CatalogAttributeValuePayloadV2.ts
src/models/CatalogAttributeValueV2.ts
src/models/CatalogEntryReferenceV2.ts
src/models/CatalogEntryV2.ts
src/models/CatalogResourceV2.ts
src/models/CatalogTypeAttributePayloadV2.ts
src/models/CatalogTypeAttributeV2.ts
src/models/CatalogTypeSchemaV2.ts
src/models/CatalogTypeV2.ts
src/models/CreateEntryRequestBody.ts
src/models/CreateEntryResponseBody.ts
src/models/CreateRequestBody.ts
src/models/CreateRequestBody2.ts
src/models/CreateRequestBody3.ts
src/models/CreateRequestBody3Resource.ts
src/models/CreateRequestBody4.ts
src/models/CreateRequestBody5.ts
src/models/CreateRequestBody6.ts
src/models/CreateRequestBody7.ts
src/models/CreateRequestBody8.ts
src/models/CreateResponseBody.ts
src/models/CreateTypeRequestBody.ts
src/models/CreateTypeResponseBody.ts
src/models/CustomFieldEntryPayloadV1.ts
src/models/CustomFieldEntryV1.ts
src/models/CustomFieldOptionV1.ts
src/models/CustomFieldTypeInfoV1.ts
src/models/CustomFieldV1.ts
src/models/CustomFieldValuePayloadV1.ts
src/models/CustomFieldValueV1.ts
src/models/EditRequestBody.ts
src/models/ExternalIssueReferenceV1.ts
src/models/ExternalIssueReferenceV2.ts
src/models/ExternalResourceV1.ts
src/models/IdentityResponseBody.ts
src/models/IdentityV1.ts
src/models/IncidentAttachmentV1.ts
src/models/IncidentEditPayloadV2.ts
src/models/IncidentRoleAssignmentPayloadV1.ts
src/models/IncidentRoleAssignmentPayloadV2.ts
src/models/IncidentRoleAssignmentV1.ts
src/models/IncidentRoleV1.ts
src/models/IncidentStatusV1.ts
src/models/IncidentTimestampV1.ts
src/models/IncidentTimestampV2.ts
src/models/IncidentTimestampValuePayloadV2.ts
src/models/IncidentTimestampValueV2.ts
src/models/IncidentTimestampWithValueV2.ts
src/models/IncidentTypeV1.ts
src/models/IncidentUpdateV2.ts
src/models/IncidentV1.ts
src/models/IncidentV2.ts
src/models/ListEntriesResponseBody.ts
src/models/ListResourcesResponseBody.ts
src/models/ListResponseBody.ts
src/models/ListResponseBody10.ts
src/models/ListResponseBody11.ts
src/models/ListResponseBody12.ts
src/models/ListResponseBody2.ts
src/models/ListResponseBody3.ts
src/models/ListResponseBody4.ts
src/models/ListResponseBody5.ts
src/models/ListResponseBody6.ts
src/models/ListResponseBody7.ts
src/models/ListResponseBody8.ts
src/models/ListResponseBody9.ts
src/models/ListTypesResponseBody.ts
src/models/PaginationMetaResult.ts
src/models/PaginationMetaResultWithTotal.ts
src/models/PrivateIncidentAccessAttemptedV1ResponseBody.ts
src/models/PrivateIncidentFollowUpCreatedV1ResponseBody.ts
src/models/PrivateIncidentFollowUpUpdatedV1ResponseBody.ts
src/models/PrivateIncidentIncidentCreatedV2ResponseBody.ts
src/models/PrivateIncidentIncidentUpdatedV2ResponseBody.ts
src/models/PublicIncidentFollowUpCreatedV1ResponseBody.ts
src/models/PublicIncidentFollowUpUpdatedV1ResponseBody.ts
src/models/PublicIncidentIncidentCreatedV2ResponseBody.ts
src/models/PublicIncidentIncidentUpdatedV2ResponseBody.ts
src/models/RetrospectiveIncidentOptionsV2.ts
src/models/ScimGroupRoleMappingsUpdatedV1ResponseBody.ts
src/models/SeverityV2.ts
src/models/ShowEntryResponseBody.ts
src/models/ShowResponseBody.ts
src/models/ShowResponseBody10.ts
src/models/ShowResponseBody2.ts
src/models/ShowResponseBody3.ts
src/models/ShowResponseBody4.ts
src/models/ShowResponseBody5.ts
src/models/ShowResponseBody6.ts
src/models/ShowResponseBody7.ts
src/models/ShowResponseBody8.ts
src/models/ShowResponseBody9.ts
src/models/UpdateEntryRequestBody.ts
src/models/UpdateRequestBody.ts
src/models/UpdateRequestBody2.ts
src/models/UpdateRequestBody3.ts
src/models/UpdateRequestBody4.ts
src/models/UpdateTypeRequestBody.ts
src/models/UpdateTypeSchemaRequestBody.ts
src/models/UserReferencePayloadV1.ts
src/models/UserRoleMembershipsUpdatedV1ResponseBody.ts
src/models/UserV1.ts
src/models/WebhookPrivateResourceV2.ts
src/models/index.ts
src/runtime.ts
tsconfig.json
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.3.0
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.PHONY: src openapi-generator-cli-6.jar

src:
rm -rfv src
java -jar openapi-generator-cli-6.jar \
generate \
--generator-name typescript-fetch \
--input-spec definitions/openapi3.json \
--skip-validate-spec \
--additional-properties npmName=incident-io,typescriptThreePlus=true,modelPropertyNaming=original \
--output .

openapi-generator-cli-6.jar:
curl https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar \
--output $@
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## [email protected]

This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run ```npm publish```

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install [email protected] --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
Loading

0 comments on commit 7f84890

Please sign in to comment.