import * as ambassadorWixOsTagsV1Tag from './os-tags-v1-tag-tags.http'; import * as ambassadorWixOsTagsV1TagTypes from './os-tags-v1-tag-tags.types'; import * as ambassadorWixOsTagsV1TagUniversalTypes from './os-tags-v1-tag-tags.universal'; export type __PublicMethodMetaInfo< K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown > = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; export function createTag(): __PublicMethodMetaInfo< 'POST', {}, ambassadorWixOsTagsV1TagUniversalTypes.CreateTagRequest, ambassadorWixOsTagsV1TagTypes.CreateTagRequest, ambassadorWixOsTagsV1TagUniversalTypes.CreateTagResponse & ambassadorWixOsTagsV1TagUniversalTypes.CreateTagResponseNonNullableFields, ambassadorWixOsTagsV1TagTypes.CreateTagResponse & ambassadorWixOsTagsV1TagTypes.CreateTagResponseNonNullableFields > { const payload = {} as any; const getRequestOptions = ambassadorWixOsTagsV1Tag.createTag(payload); const getUrl = (context: any): string => { const { url } = getRequestOptions(context); return url!; }; return { getUrl, httpMethod: 'POST', path: '/v1/tags', pathParams: {}, __requestType: null as any, __originalRequestType: null as any, __responseType: null as any, __originalResponseType: null as any, }; } export function getTag(): __PublicMethodMetaInfo< 'GET', { tagId: string }, ambassadorWixOsTagsV1TagUniversalTypes.GetTagRequest, ambassadorWixOsTagsV1TagTypes.GetTagRequest, ambassadorWixOsTagsV1TagUniversalTypes.GetTagResponse & ambassadorWixOsTagsV1TagUniversalTypes.GetTagResponseNonNullableFields, ambassadorWixOsTagsV1TagTypes.GetTagResponse & ambassadorWixOsTagsV1TagTypes.GetTagResponseNonNullableFields > { const payload = { tagId: ':tagId' } as any; const getRequestOptions = ambassadorWixOsTagsV1Tag.getTag(payload); const getUrl = (context: any): string => { const { url } = getRequestOptions(context); return url!; }; return { getUrl, httpMethod: 'GET', path: '/v1/tags/{tagId}', pathParams: { tagId: 'tagId' }, __requestType: null as any, __originalRequestType: null as any, __responseType: null as any, __originalResponseType: null as any, }; } export function updateTag(): __PublicMethodMetaInfo< 'PATCH', { tagId: string }, ambassadorWixOsTagsV1TagUniversalTypes.UpdateTagRequest, ambassadorWixOsTagsV1TagTypes.UpdateTagRequest, ambassadorWixOsTagsV1TagUniversalTypes.UpdateTagResponse & ambassadorWixOsTagsV1TagUniversalTypes.UpdateTagResponseNonNullableFields, ambassadorWixOsTagsV1TagTypes.UpdateTagResponse & ambassadorWixOsTagsV1TagTypes.UpdateTagResponseNonNullableFields > { const payload = { tag: { id: ':tagId' } } as any; const getRequestOptions = ambassadorWixOsTagsV1Tag.updateTag(payload); const getUrl = (context: any): string => { const { url } = getRequestOptions(context); return url!; }; return { getUrl, httpMethod: 'PATCH', path: '/v1/tags/{tag.id}', pathParams: { tagId: 'tagId' }, __requestType: null as any, __originalRequestType: null as any, __responseType: null as any, __originalResponseType: null as any, }; } export function deleteTag(): __PublicMethodMetaInfo< 'DELETE', { tagId: string }, ambassadorWixOsTagsV1TagUniversalTypes.DeleteTagRequest, ambassadorWixOsTagsV1TagTypes.DeleteTagRequest, ambassadorWixOsTagsV1TagUniversalTypes.DeleteTagResponse, ambassadorWixOsTagsV1TagTypes.DeleteTagResponse > { const payload = { tagId: ':tagId' } as any; const getRequestOptions = ambassadorWixOsTagsV1Tag.deleteTag(payload); const getUrl = (context: any): string => { const { url } = getRequestOptions(context); return url!; }; return { getUrl, httpMethod: 'DELETE', path: '/v1/tags/{tagId}', pathParams: { tagId: 'tagId' }, __requestType: null as any, __originalRequestType: null as any, __responseType: null as any, __originalResponseType: null as any, }; } export function listTags(): __PublicMethodMetaInfo< 'GET', {}, ambassadorWixOsTagsV1TagUniversalTypes.ListTagsRequest, ambassadorWixOsTagsV1TagTypes.ListTagsRequest, ambassadorWixOsTagsV1TagUniversalTypes.ListTagsResponse & ambassadorWixOsTagsV1TagUniversalTypes.ListTagsResponseNonNullableFields, ambassadorWixOsTagsV1TagTypes.ListTagsResponse & ambassadorWixOsTagsV1TagTypes.ListTagsResponseNonNullableFields > { const payload = {} as any; const getRequestOptions = ambassadorWixOsTagsV1Tag.listTags(payload); const getUrl = (context: any): string => { const { url } = getRequestOptions(context); return url!; }; return { getUrl, httpMethod: 'GET', path: '/v1/tags', pathParams: {}, __requestType: null as any, __originalRequestType: null as any, __responseType: null as any, __originalResponseType: null as any, }; }