Skip to content

Commit

Permalink
chore: swagger doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubisoft-potato authored Dec 11, 2024
1 parent ea69b36 commit add40ee
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api-description/web-api.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ paths:
collectionFormat: multi
- name: organizationId
in: query
required: false
required: true
type: string
tags:
- API Key
Expand Down
21 changes: 21 additions & 0 deletions ui/web-v2/src/google/api/field_behavior_pb.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// package: google.api
// file: google/api/field_behavior.proto

import * as jspb from 'google-protobuf';
import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb';

export const fieldBehavior: jspb.ExtensionFieldInfo<FieldBehaviorMap>;

export interface FieldBehaviorMap {
FIELD_BEHAVIOR_UNSPECIFIED: 0;
OPTIONAL: 1;
REQUIRED: 2;
OUTPUT_ONLY: 3;
INPUT_ONLY: 4;
IMMUTABLE: 5;
UNORDERED_LIST: 6;
NON_EMPTY_DEFAULT: 7;
IDENTIFIER: 8;
}

export const FieldBehavior: FieldBehaviorMap;
72 changes: 72 additions & 0 deletions ui/web-v2/src/google/api/field_behavior_pb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// source: google/api/field_behavior.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck

var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof window !== 'undefined' && window) ||
(typeof global !== 'undefined' && global) ||
(typeof self !== 'undefined' && self) ||
function () {
return this;
}.call(null) ||
Function('return this')();

var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
goog.object.extend(proto, google_protobuf_descriptor_pb);
goog.exportSymbol('proto.google.api.FieldBehavior', null, global);
goog.exportSymbol('proto.google.api.fieldBehaviorList', null, global);
/**
* @enum {number}
*/
proto.google.api.FieldBehavior = {
FIELD_BEHAVIOR_UNSPECIFIED: 0,
OPTIONAL: 1,
REQUIRED: 2,
OUTPUT_ONLY: 3,
INPUT_ONLY: 4,
IMMUTABLE: 5,
UNORDERED_LIST: 6,
NON_EMPTY_DEFAULT: 7,
IDENTIFIER: 8
};

/**
* A tuple of {field number, class constructor} for the extension
* field named `fieldBehaviorList`.
* @type {!jspb.ExtensionFieldInfo<!Array<!proto.google.api.FieldBehavior>>}
*/
proto.google.api.fieldBehaviorList = new jspb.ExtensionFieldInfo(
1052,
{ fieldBehaviorList: 0 },
null,
/** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null),
1
);

google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[1052] =
new jspb.ExtensionFieldBinaryInfo(
proto.google.api.fieldBehaviorList,
jspb.BinaryReader.prototype.readEnum,
jspb.BinaryWriter.prototype.writeRepeatedEnum,
undefined,
undefined,
false
);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.FieldOptions.extensions[1052] =
proto.google.api.fieldBehaviorList;

goog.object.extend(exports, proto.google.api);
2 changes: 2 additions & 0 deletions ui/web-v2/src/google/api/field_behavior_pb_service.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// package: google.api
// file: google/api/field_behavior.proto
2 changes: 2 additions & 0 deletions ui/web-v2/src/google/api/field_behavior_pb_service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// package: google.api
// file: google/api/field_behavior.proto
1 change: 1 addition & 0 deletions ui/web-v2/src/proto/account/service_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import * as jspb from 'google-protobuf';
import * as google_protobuf_wrappers_pb from 'google-protobuf/google/protobuf/wrappers_pb';
import * as google_api_annotations_pb from '../../google/api/annotations_pb';
import * as google_api_field_behavior_pb from '../../google/api/field_behavior_pb';
import * as protoc_gen_openapiv2_options_annotations_pb from '../../protoc-gen-openapiv2/options/annotations_pb';
import * as proto_account_account_pb from '../../proto/account/account_pb';
import * as proto_account_api_key_pb from '../../proto/account/api_key_pb';
Expand Down
2 changes: 2 additions & 0 deletions ui/web-v2/src/proto/account/service_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrapp
goog.object.extend(proto, google_protobuf_wrappers_pb);
var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
goog.object.extend(proto, google_api_annotations_pb);
var google_api_field_behavior_pb = require('../../google/api/field_behavior_pb.js');
goog.object.extend(proto, google_api_field_behavior_pb);
var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb.js');
goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
var proto_account_account_pb = require('../../proto/account/account_pb.js');
Expand Down

0 comments on commit add40ee

Please sign in to comment.