Skip to content

Commit f794692

Browse files
authored
chore(package): use client package path (scaleway#1954)
1 parent f9b5939 commit f794692

File tree

122 files changed

+234
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+234
-230
lines changed

packages/clients/src/api/account/v3/api.gen.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
enrichForPagination,
66
urlParams,
77
validatePathParam,
8-
} from '../../../bridge'
8+
} from '@scaleway/sdk-client'
99
import {
1010
marshalContractApiCheckContractSignatureRequest,
1111
marshalContractApiCreateContractSignatureRequest,

packages/clients/src/api/account/v3/marshalling.gen.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
resolveOneOf,
77
unmarshalArrayOfObject,
88
unmarshalDate,
9-
} from '../../../bridge'
10-
import type { DefaultValues } from '../../../bridge'
9+
} from '@scaleway/sdk-client'
10+
import type { DefaultValues } from '@scaleway/sdk-client'
1111
import type {
1212
CheckContractSignatureResponse,
1313
Contract,

packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
urlParams,
77
validatePathParam,
88
waitForResource,
9-
} from '../../../bridge'
10-
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
9+
} from '@scaleway/sdk-client'
10+
import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client'
1111
import {
1212
SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES as SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES_APPLESILICON,
1313
SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_APPLESILICON,

packages/clients/src/api/applesilicon/v1alpha1/marshalling.gen.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
isJSONObject,
66
unmarshalArrayOfObject,
77
unmarshalDate,
8-
} from '../../../bridge'
9-
import type { DefaultValues } from '../../../bridge'
8+
} from '@scaleway/sdk-client'
9+
import type { DefaultValues } from '@scaleway/sdk-client'
1010
import type {
1111
Commitment,
1212
CommitmentTypeValue,

packages/clients/src/api/applesilicon/v1alpha1/types.gen.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
3-
import type { Zone as ScwZone } from '../../../bridge'
3+
import type { Zone as ScwZone } from '@scaleway/sdk-client'
44

55
export type CommitmentType = 'duration_24h' | 'renewed_monthly' | 'none'
66

packages/clients/src/api/audit_trail/v1alpha1/api.gen.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
3-
import { API as ParentAPI, urlParams, validatePathParam } from '../../../bridge'
4-
import type { Region as ScwRegion } from '../../../bridge'
3+
import {
4+
API as ParentAPI,
5+
urlParams,
6+
validatePathParam,
7+
} from '@scaleway/sdk-client'
8+
import type { Region as ScwRegion } from '@scaleway/sdk-client'
59
import {
610
unmarshalListEventsResponse,
711
unmarshalListProductsResponse,

packages/clients/src/api/audit_trail/v1alpha1/marshalling.gen.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
isJSONObject,
55
unmarshalArrayOfObject,
66
unmarshalDate,
7-
} from '../../../bridge'
7+
} from '@scaleway/sdk-client'
88
import type {
99
Event,
1010
EventPrincipal,

packages/clients/src/api/audit_trail/v1alpha1/types.gen.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
3-
import type { Region as ScwRegion } from '../../../bridge'
3+
import type { Region as ScwRegion } from '@scaleway/sdk-client'
44

55
export type ListEventsRequestOrderBy = 'recorded_at_desc' | 'recorded_at_asc'
66

packages/clients/src/api/baremetal/v1/api.gen.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
urlParams,
77
validatePathParam,
88
waitForResource,
9-
} from '../../../bridge'
10-
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
9+
} from '@scaleway/sdk-client'
10+
import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client'
1111
import { SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_BAREMETAL } from './content.gen'
1212
import {
1313
marshalAddOptionServerRequest,

packages/clients/src/api/baremetal/v1/marshalling.gen.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
unmarshalDate,
88
unmarshalMoney,
99
unmarshalTimeSeries,
10-
} from '../../../bridge'
11-
import type { DefaultValues } from '../../../bridge'
10+
} from '@scaleway/sdk-client'
11+
import type { DefaultValues } from '@scaleway/sdk-client'
1212
import type {
1313
AddOptionServerRequest,
1414
BMCAccess,

packages/clients/src/api/baremetal/v1/types.gen.ts

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
3-
import type { Money, Zone as ScwZone, TimeSeries } from '../../../bridge'
3+
import type { Money, Zone as ScwZone, TimeSeries } from '@scaleway/sdk-client'
44

55
export type IPReverseStatus = 'unknown' | 'pending' | 'active' | 'error'
66

@@ -611,7 +611,7 @@ export interface Setting {
611611
enabled: boolean
612612
}
613613

614-
export interface AddOptionServerRequest {
614+
export type AddOptionServerRequest = {
615615
/** Zone to target. If none is passed will use default zone from the config. */
616616
zone?: ScwZone
617617
/** ID of the server. */
@@ -642,7 +642,7 @@ export interface BMCAccess {
642642
expiresAt?: Date
643643
}
644644

645-
export interface CreateServerRequest {
645+
export type CreateServerRequest = {
646646
/** Zone to target. If none is passed will use default zone from the config. */
647647
zone?: ScwZone
648648
/** Offer ID of the new server. */
@@ -676,7 +676,7 @@ export interface CreateServerRequest {
676676
optionIds?: string[]
677677
}
678678

679-
export interface DeleteOptionServerRequest {
679+
export type DeleteOptionServerRequest = {
680680
/** Zone to target. If none is passed will use default zone from the config. */
681681
zone?: ScwZone
682682
/** ID of the server. */
@@ -685,21 +685,21 @@ export interface DeleteOptionServerRequest {
685685
optionId: string
686686
}
687687

688-
export interface DeleteServerRequest {
688+
export type DeleteServerRequest = {
689689
/** Zone to target. If none is passed will use default zone from the config. */
690690
zone?: ScwZone
691691
/** ID of the server to delete. */
692692
serverId: string
693693
}
694694

695-
export interface GetBMCAccessRequest {
695+
export type GetBMCAccessRequest = {
696696
/** Zone to target. If none is passed will use default zone from the config. */
697697
zone?: ScwZone
698698
/** ID of the server. */
699699
serverId: string
700700
}
701701

702-
export interface GetDefaultPartitioningSchemaRequest {
702+
export type GetDefaultPartitioningSchemaRequest = {
703703
/** Zone to target. If none is passed will use default zone from the config. */
704704
zone?: ScwZone
705705
/** ID of the offer. */
@@ -708,28 +708,28 @@ export interface GetDefaultPartitioningSchemaRequest {
708708
osId: string
709709
}
710710

711-
export interface GetOSRequest {
711+
export type GetOSRequest = {
712712
/** Zone to target. If none is passed will use default zone from the config. */
713713
zone?: ScwZone
714714
/** ID of the OS. */
715715
osId: string
716716
}
717717

718-
export interface GetOfferRequest {
718+
export type GetOfferRequest = {
719719
/** Zone to target. If none is passed will use default zone from the config. */
720720
zone?: ScwZone
721721
/** ID of the researched Offer. */
722722
offerId: string
723723
}
724724

725-
export interface GetOptionRequest {
725+
export type GetOptionRequest = {
726726
/** Zone to target. If none is passed will use default zone from the config. */
727727
zone?: ScwZone
728728
/** ID of the option. */
729729
optionId: string
730730
}
731731

732-
export interface GetServerMetricsRequest {
732+
export type GetServerMetricsRequest = {
733733
/** Zone to target. If none is passed will use default zone from the config. */
734734
zone?: ScwZone
735735
/** Server ID to get the metrics. */
@@ -741,14 +741,14 @@ export interface GetServerMetricsResponse {
741741
pings?: TimeSeries
742742
}
743743

744-
export interface GetServerRequest {
744+
export type GetServerRequest = {
745745
/** Zone to target. If none is passed will use default zone from the config. */
746746
zone?: ScwZone
747747
/** ID of the server. */
748748
serverId: string
749749
}
750750

751-
export interface InstallServerRequest {
751+
export type InstallServerRequest = {
752752
/** Zone to target. If none is passed will use default zone from the config. */
753753
zone?: ScwZone
754754
/** Server ID to install. */
@@ -771,7 +771,7 @@ export interface InstallServerRequest {
771771
partitioningSchema?: Schema
772772
}
773773

774-
export interface ListOSRequest {
774+
export type ListOSRequest = {
775775
/** Zone to target. If none is passed will use default zone from the config. */
776776
zone?: ScwZone
777777
/** Page number. */
@@ -789,7 +789,7 @@ export interface ListOSResponse {
789789
os: OS[]
790790
}
791791

792-
export interface ListOffersRequest {
792+
export type ListOffersRequest = {
793793
/** Zone to target. If none is passed will use default zone from the config. */
794794
zone?: ScwZone
795795
/** Page number. */
@@ -809,7 +809,7 @@ export interface ListOffersResponse {
809809
offers: Offer[]
810810
}
811811

812-
export interface ListOptionsRequest {
812+
export type ListOptionsRequest = {
813813
/** Zone to target. If none is passed will use default zone from the config. */
814814
zone?: ScwZone
815815
/** Page number. */
@@ -829,7 +829,7 @@ export interface ListOptionsResponse {
829829
options: Option[]
830830
}
831831

832-
export interface ListServerEventsRequest {
832+
export type ListServerEventsRequest = {
833833
/** Zone to target. If none is passed will use default zone from the config. */
834834
zone?: ScwZone
835835
/** ID of the server events searched. */
@@ -854,7 +854,7 @@ export interface ListServerPrivateNetworksResponse {
854854
totalCount: number
855855
}
856856

857-
export interface ListServersRequest {
857+
export type ListServersRequest = {
858858
/** Zone to target. If none is passed will use default zone from the config. */
859859
zone?: ScwZone
860860
/** Page number. */
@@ -884,7 +884,7 @@ export interface ListServersResponse {
884884
servers: Server[]
885885
}
886886

887-
export interface ListSettingsRequest {
887+
export type ListSettingsRequest = {
888888
/** Zone to target. If none is passed will use default zone from the config. */
889889
zone?: ScwZone
890890
/** Page number. */
@@ -904,14 +904,14 @@ export interface ListSettingsResponse {
904904
settings: Setting[]
905905
}
906906

907-
export interface MigrateServerToMonthlyOfferRequest {
907+
export type MigrateServerToMonthlyOfferRequest = {
908908
/** Zone to target. If none is passed will use default zone from the config. */
909909
zone?: ScwZone
910910
/** ID of the server. */
911911
serverId: string
912912
}
913913

914-
export interface PrivateNetworkApiAddServerPrivateNetworkRequest {
914+
export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
915915
/** Zone to target. If none is passed will use default zone from the config. */
916916
zone?: ScwZone
917917
/** The ID of the server. */
@@ -920,7 +920,7 @@ export interface PrivateNetworkApiAddServerPrivateNetworkRequest {
920920
privateNetworkId: string
921921
}
922922

923-
export interface PrivateNetworkApiDeleteServerPrivateNetworkRequest {
923+
export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
924924
/** Zone to target. If none is passed will use default zone from the config. */
925925
zone?: ScwZone
926926
/** The ID of the server. */
@@ -929,7 +929,7 @@ export interface PrivateNetworkApiDeleteServerPrivateNetworkRequest {
929929
privateNetworkId: string
930930
}
931931

932-
export interface PrivateNetworkApiListServerPrivateNetworksRequest {
932+
export type PrivateNetworkApiListServerPrivateNetworksRequest = {
933933
/** Zone to target. If none is passed will use default zone from the config. */
934934
zone?: ScwZone
935935
/** The sort order for the returned Private Networks. */
@@ -948,7 +948,7 @@ export interface PrivateNetworkApiListServerPrivateNetworksRequest {
948948
projectId?: string
949949
}
950950

951-
export interface PrivateNetworkApiSetServerPrivateNetworksRequest {
951+
export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
952952
/** Zone to target. If none is passed will use default zone from the config. */
953953
zone?: ScwZone
954954
/** The ID of the server. */
@@ -957,7 +957,7 @@ export interface PrivateNetworkApiSetServerPrivateNetworksRequest {
957957
privateNetworkIds: string[]
958958
}
959959

960-
export interface RebootServerRequest {
960+
export type RebootServerRequest = {
961961
/** Zone to target. If none is passed will use default zone from the config. */
962962
zone?: ScwZone
963963
/** ID of the server to reboot. */
@@ -970,7 +970,7 @@ export interface SetServerPrivateNetworksResponse {
970970
serverPrivateNetworks: ServerPrivateNetwork[]
971971
}
972972

973-
export interface StartBMCAccessRequest {
973+
export type StartBMCAccessRequest = {
974974
/** Zone to target. If none is passed will use default zone from the config. */
975975
zone?: ScwZone
976976
/** ID of the server. */
@@ -979,7 +979,7 @@ export interface StartBMCAccessRequest {
979979
ip: string
980980
}
981981

982-
export interface StartServerRequest {
982+
export type StartServerRequest = {
983983
/** Zone to target. If none is passed will use default zone from the config. */
984984
zone?: ScwZone
985985
/** ID of the server to start. */
@@ -988,21 +988,21 @@ export interface StartServerRequest {
988988
bootType?: ServerBootType
989989
}
990990

991-
export interface StopBMCAccessRequest {
991+
export type StopBMCAccessRequest = {
992992
/** Zone to target. If none is passed will use default zone from the config. */
993993
zone?: ScwZone
994994
/** ID of the server. */
995995
serverId: string
996996
}
997997

998-
export interface StopServerRequest {
998+
export type StopServerRequest = {
999999
/** Zone to target. If none is passed will use default zone from the config. */
10001000
zone?: ScwZone
10011001
/** ID of the server to stop. */
10021002
serverId: string
10031003
}
10041004

1005-
export interface UpdateIPRequest {
1005+
export type UpdateIPRequest = {
10061006
/** Zone to target. If none is passed will use default zone from the config. */
10071007
zone?: ScwZone
10081008
/** ID of the server. */
@@ -1013,7 +1013,7 @@ export interface UpdateIPRequest {
10131013
reverse?: string
10141014
}
10151015

1016-
export interface UpdateServerRequest {
1016+
export type UpdateServerRequest = {
10171017
/** Zone to target. If none is passed will use default zone from the config. */
10181018
zone?: ScwZone
10191019
/** ID of the server to update. */
@@ -1029,7 +1029,7 @@ export interface UpdateServerRequest {
10291029
tags?: string[]
10301030
}
10311031

1032-
export interface UpdateSettingRequest {
1032+
export type UpdateSettingRequest = {
10331033
/** Zone to target. If none is passed will use default zone from the config. */
10341034
zone?: ScwZone
10351035
/** ID of the setting. */
@@ -1038,7 +1038,7 @@ export interface UpdateSettingRequest {
10381038
enabled?: boolean
10391039
}
10401040

1041-
export interface ValidatePartitioningSchemaRequest {
1041+
export type ValidatePartitioningSchemaRequest = {
10421042
/** Zone to target. If none is passed will use default zone from the config. */
10431043
zone?: ScwZone
10441044
/** Partitioning schema. */

0 commit comments

Comments
 (0)